Support for force an image as blank.
This commit is contained in:
parent
05cb1dbaff
commit
a6fa7ab8b6
@ -131,11 +131,18 @@ int isoburn_read_image(struct burn_drive *d,
|
|||||||
if (image==NULL)
|
if (image==NULL)
|
||||||
return -1;
|
return -1;
|
||||||
/* create a new image */
|
/* create a new image */
|
||||||
ret = iso_image_new("NEW", image);
|
ret = iso_image_new("NEW DISC", image);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
/* use isoburn image */
|
/* 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;
|
||||||
|
}
|
||||||
if (image) {
|
if (image) {
|
||||||
*image = o->image;
|
*image = o->image;
|
||||||
iso_image_ref(*image); /*protects object from premature free*/
|
iso_image_ref(*image); /*protects object from premature free*/
|
||||||
|
Loading…
Reference in New Issue
Block a user