Told burn_read_data() to stay silent on non-existent drive or read error
This commit is contained in:
parent
deef424796
commit
bbb8ddfd1f
@ -213,7 +213,7 @@ int isoburn_start_emulation(struct isoburn *o, int flag)
|
|||||||
/* we can assume 0 as start block for image */
|
/* we can assume 0 as start block for image */
|
||||||
// TODO what about ms? where we validate valid iso image in ms disc?
|
// TODO what about ms? where we validate valid iso image in ms disc?
|
||||||
ret = burn_read_data(drive, (off_t) 0, (char*)o->target_iso_head,
|
ret = burn_read_data(drive, (off_t) 0, (char*)o->target_iso_head,
|
||||||
sizeof(o->target_iso_head), &data_count, 0);
|
sizeof(o->target_iso_head), &data_count, 1);
|
||||||
|
|
||||||
/* an error means an empty disc */
|
/* an error means an empty disc */
|
||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2007.10.17.130041"
|
#define Xorriso_timestamP "2007.10.17.130311"
|
||||||
|
Loading…
Reference in New Issue
Block a user