Showing a "Media summary:" with blank media

This commit is contained in:
Thomas Schmitt 2008-10-21 12:33:09 +00:00
parent 7041a551b1
commit 658e0203c9
2 changed files with 8 additions and 1 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.10.21.112523" #define Xorriso_timestamP "2008.10.21.123226"

View File

@ -3783,6 +3783,13 @@ int Xorriso_toc(struct XorrisO *xorriso, int flag)
sprintf(respt+strlen(respt), "is not recognizable\n"); sprintf(respt+strlen(respt), "is not recognizable\n");
Xorriso_result(xorriso,0); Xorriso_result(xorriso,0);
if(s == BURN_DISC_BLANK) {
sprintf(respt, "Media summary: 0 sessions, 0 data blocks, 0 data");
num_free= isoburn_disc_available_space(drive, NULL);
Sfile_scale((double) num_free, mem_text,5,1e4,1);
sprintf(respt+strlen(respt), ", %s free\n", mem_text);
Xorriso_result(xorriso,0);
}
if(s != BURN_DISC_FULL && s != BURN_DISC_APPENDABLE) if(s != BURN_DISC_FULL && s != BURN_DISC_APPENDABLE)
return(1); return(1);
if(xorriso->request_to_abort) if(xorriso->request_to_abort)