Changes about blanking loaded image

master
Thomas Schmitt 15 years ago
parent 34ac0801f3
commit 0b37c19e3f
  1. 16
      ng_src/isofs_wrap.c

@ -128,21 +128,19 @@ int isoburn_read_image(struct burn_drive *d,
*/
if (d == NULL) {
/* New empty image without relation to a drive */
if (image==NULL)
return -1;
/* create a new image */
ret = iso_image_new("NEW DISC", image);
ret = iso_image_new("ISOIMAGE", image);
if (ret < 0)
return ret;
} else {
/* use isoburn image */
if (status == BURN_DISC_BLANK || read_opts->pretend_blank) {
/* we need to blanck old image */
iso_image_unref(o->image);
ret = iso_image_new("NEW DISC", &o->image);
if (ret < 0)
return ret;
}
/* Blank new image for the drive */
iso_image_unref(o->image);
ret = iso_image_new("ISOIMAGE", &o->image);
if (ret < 0)
return ret;
if (image) {
*image = o->image;
iso_image_ref(*image); /*protects object from premature free*/

Loading…
Cancel
Save