Issueing a warning messages if BD-R with more than 299 sessions is loaded

This commit is contained in:
Thomas Schmitt 2011-07-25 10:38:34 +00:00
parent 5d85defafa
commit 0e56c03b04
2 changed files with 7 additions and 1 deletions

View File

@ -1103,6 +1103,12 @@ int Xorriso_toc(struct XorrisO *xorriso, int flag)
Xorriso_toc_line(xorriso, flag & 8);
}
}
if(profile_no == 0x41 && num_sessions >= 300) {
sprintf(xorriso->info_text,
"Sequential BD-R media now contains %d sessions. It is likely to soon fail writing.",
num_sessions);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0);
}
if (disc!=NULL)
isoburn_toc_disc_free(disc);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.07.25.095843"
#define Xorriso_timestamP "2011.07.25.103809"