Small correction with reporting profile "Remoovable disk"

This commit is contained in:
Thomas Schmitt 2009-08-28 11:40:56 +00:00
parent 912355039c
commit c6407f66c2
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2009.08.28.101716"
#define Xorriso_timestamP "2009.08.28.112825"

View File

@ -5203,8 +5203,11 @@ int Xorriso_toc(struct XorrisO *xorriso, int flag)
if(flag & 32)
return(1);
sprintf(respt, "Media current: ");
ret= burn_disc_get_profile(drive, &profile_no, profile_name);
s= isoburn_disc_get_status(drive);
if(profile_no == 0x0002 && s == BURN_DISC_EMPTY)
profile_no= 0;
sprintf(respt, "Media current: ");
if (profile_no > 0 && ret > 0) {
if (profile_name[0])
sprintf(respt+strlen(respt), "%s", profile_name);
@ -5221,7 +5224,6 @@ int Xorriso_toc(struct XorrisO *xorriso, int flag)
Xorriso_toc_line(xorriso, flag & 8);
sprintf(respt, "Media status : ");
s= isoburn_disc_get_status(drive);
if (s == BURN_DISC_FULL) {
sprintf(respt+strlen(respt), "is written , is closed\n");
} else if (s == BURN_DISC_APPENDABLE) {