Counting -volid as pending change only if the text really changed
This commit is contained in:
parent
4a511b73a8
commit
777863df2e
@ -336,9 +336,11 @@ int Xorriso_set_volid(struct XorrisO *xorriso, char *volid, int flag)
|
||||
ret= Xorriso_get_volume(xorriso, &volume, 0);
|
||||
if(ret<=0)
|
||||
return(ret);
|
||||
if(iso_image_get_volume_id(volume) == NULL ||
|
||||
strcmp(iso_image_get_volume_id(volume), volid) != 0)
|
||||
if(!(flag&1))
|
||||
Xorriso_set_change_pending(xorriso, 1);
|
||||
iso_image_set_volume_id(volume, volid);
|
||||
if(!(flag&1))
|
||||
Xorriso_set_change_pending(xorriso, 1);
|
||||
Xorriso_process_msg_queues(xorriso,0);
|
||||
sprintf(xorriso->info_text,"Volume ID: '%s'",iso_image_get_volume_id(volume));
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "DEBUG", 0);
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2015.04.23.142257"
|
||||
#define Xorriso_timestamP "2015.04.23.142407"
|
||||
|
Loading…
Reference in New Issue
Block a user