Centralized the inquiry whether an image change is pending
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
|
||||
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
|
||||
|
||||
Copyright 2007-2011 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
Copyright 2007-2012 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
|
||||
Provided under GPL version 2 or later.
|
||||
|
||||
@ -1398,7 +1398,7 @@ int Xorriso_tell_media_space(struct XorrisO *xorriso,
|
||||
isoburn_disc_available_space(drive, burn_options) / (off_t) 2048;
|
||||
burn_write_opts_free(burn_options);
|
||||
|
||||
if(xorriso->volset_change_pending) {
|
||||
if(Xorriso_change_is_pending(xorriso, 0)) {
|
||||
ret= Xorriso_write_session(xorriso, 1);
|
||||
if(ret>0)
|
||||
(*free_space)-= ret;
|
||||
|
Reference in New Issue
Block a user