From c8a7eb95543d8c49d605aff7320a6302fc5c3842 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 12 Dec 2011 18:14:16 +0000 Subject: [PATCH] Enabled repetition of track texts by TAB character --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/write.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index b07224dd..d2cbf3ca 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.12.12.164452" +#define Cdrskin_timestamP "2011.12.12.181346" diff --git a/libburn/trunk/libburn/write.c b/libburn/trunk/libburn/write.c index 37098b5e..7b0029d6 100644 --- a/libburn/trunk/libburn/write.c +++ b/libburn/trunk/libburn/write.c @@ -937,10 +937,11 @@ static int burn_decide_cdtext_tab(int block, int pack_type, if (((cdt_curr->flags >> idx) & 1) != ((cdt_prev->flags >> idx) & 1)) return 0; length = cdt_curr->length[idx]; - if (length != cdt_prev->length[idx] || length == 0) + if (length != cdt_prev->length[idx] || + length <= 1 + ((cdt_curr->flags >> idx) & 1)) return 0; for (j = 0; j < length; j++) - if (cdt_curr->payload[j] != cdt_prev->payload[j]) + if (cdt_curr->payload[idx][j] != cdt_prev->payload[idx][j]) break; if (j < length) return 0;