Reporting line number in case of cue sheet file problems
This commit is contained in:
parent
c40d953e9a
commit
51186380bb
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2012.01.01.173446"
|
||||
#define Cdrskin_timestamP "2012.01.02.143655"
|
||||
|
@ -591,6 +591,7 @@ Range "scdbackup" : 0x00020000 to 0x0002ffff
|
||||
0x00020196 (FAILURE,HIGH) = Session has already defined tracks
|
||||
0x00020197 (FAILURE,HIGH) = Unsupported text input file feature
|
||||
0x00020198 (FAILURE,HIGH) = CD-TEXT pack file readability problem
|
||||
0x00020199 (SORRY,HIGH) = Text input file reading aborted
|
||||
|
||||
|
||||
libdax_audioxtr:
|
||||
|
@ -1697,6 +1697,7 @@ int burn_session_by_cue_file(struct burn_session *session, char *path,
|
||||
unsigned char **text_packs, int *num_packs, int flag)
|
||||
{
|
||||
int ret, num_tracks, i, pack_type, length, double_byte = 0;
|
||||
int line_counter = 0;
|
||||
struct burn_track **tracks;
|
||||
char *msg = NULL, *line = NULL;
|
||||
unsigned char *payload;
|
||||
@ -1766,9 +1767,17 @@ cannot_open:;
|
||||
burn_printify(msg), 0, 0);
|
||||
ret = 0; goto ex;
|
||||
}
|
||||
line_counter++;
|
||||
ret = cue_interpret_line(session, line, crs, 0);
|
||||
if (ret <= 0)
|
||||
if (ret <= 0) {
|
||||
sprintf(msg,
|
||||
"Cue sheet file '%.4000s': Reading aborted after line %d",
|
||||
path, line_counter);
|
||||
libdax_msgs_submit(libdax_messenger, -1, 0x00020199,
|
||||
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
||||
burn_printify(msg), 0, 0);
|
||||
goto ex;
|
||||
}
|
||||
}
|
||||
|
||||
/* Attach last track to session */
|
||||
|
Loading…
Reference in New Issue
Block a user