Avoided to create track without toc_entry from "hidden first track" on CD

This commit is contained in:
Thomas Schmitt 2010-04-30 18:04:47 +00:00
parent 224275e454
commit 8b28a2124a
2 changed files with 8 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2010.04.09.104907" #define Cdrskin_timestamP "2010.04.30.180350"

View File

@ -1400,6 +1400,11 @@ static int mmc_read_toc_al(struct burn_drive *d, int *alloc_len)
fprintf(stderr, "libburn_experimental: toc entry #%d : %d %d %d\n",i,tdata[8], tdata[9], tdata[10]); fprintf(stderr, "libburn_experimental: toc entry #%d : %d %d %d\n",i,tdata[8], tdata[9], tdata[10]);
*/ */
#ifdef Libburn_allow_first_hiddeN
/* ts B00430 : this causes problems because the track has
no entry. One would have to coordinate this
with other parts of libburn.
*/
if (tdata[3] == 1) { if (tdata[3] == 1) {
if (burn_msf_to_lba(tdata[8], tdata[9], tdata[10])) { if (burn_msf_to_lba(tdata[8], tdata[9], tdata[10])) {
d->disc->session[0]->hidefirst = 1; d->disc->session[0]->hidefirst = 1;
@ -1408,9 +1413,10 @@ static int mmc_read_toc_al(struct burn_drive *d, int *alloc_len)
session[tdata[0] - 1], session[tdata[0] - 1],
track, BURN_POS_END); track, BURN_POS_END);
burn_track_free(track); burn_track_free(track);
} }
} }
#endif /* Libburn_allow_first_hiddeN */
if (tdata[0] <= 0 || tdata[0] > d->disc->sessions) if (tdata[0] <= 0 || tdata[0] > d->disc->sessions)
tdata[0] = d->disc->sessions; tdata[0] = d->disc->sessions;
if (tdata[3] < 100 && tdata[0] > 0) { if (tdata[3] < 100 && tdata[0] > 0) {