From 9686dd717757d80d88bc01bdc65439f7a18c01f8 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 28 Aug 2009 11:40:56 +0000 Subject: [PATCH] Small correction with reporting profile "Remoovable disk" --- libisoburn/trunk/xorriso/xorriso_timestamp.h | 2 +- libisoburn/trunk/xorriso/xorrisoburn.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libisoburn/trunk/xorriso/xorriso_timestamp.h b/libisoburn/trunk/xorriso/xorriso_timestamp.h index 4a440c7f..fc6dc0d8 100644 --- a/libisoburn/trunk/xorriso/xorriso_timestamp.h +++ b/libisoburn/trunk/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2009.08.28.101716" +#define Xorriso_timestamP "2009.08.28.112825" diff --git a/libisoburn/trunk/xorriso/xorrisoburn.c b/libisoburn/trunk/xorriso/xorrisoburn.c index 78670843..06168f59 100644 --- a/libisoburn/trunk/xorriso/xorrisoburn.c +++ b/libisoburn/trunk/xorriso/xorrisoburn.c @@ -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) {