Counting -volid as pending change only if the text really changed
This commit is contained in:
parent
8fbd7bbf69
commit
3e424c5991
@ -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);
|
||||
iso_image_set_volume_id(volume, volid);
|
||||
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);
|
||||
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