Told burn_read_data() to stay silent on non-existent drive or read error

This commit is contained in:
Thomas Schmitt 2007-10-17 13:03:24 +00:00
parent deef424796
commit bbb8ddfd1f
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -1 +1 @@
#define Xorriso_timestamP "2007.10.17.130041" #define Xorriso_timestamP "2007.10.17.130311"