summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-12 19:01:54 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-12 19:01:54 +0200
commit0e2b34a5d1ecfb50e4105f04ebca40bb7bde05ed (patch)
tree726ccd5b9178d9fa27672c30b559e7c7a07300bb
parent7d96dc4cfab76927f38cd903cf8360014c7bf37c (diff)
handle cue tracks that store only pregap info
-rw-r--r--playlist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index d9fb430f..8bc5e61c 100644
--- a/playlist.c
+++ b/playlist.c
@@ -182,6 +182,11 @@ pl_process_cue_track (playItem_t *after, const char *fname, playItem_t **prev, c
}
(*prev)->duration = (*prev)->timeend - (*prev)->timestart;
}
+ // non-compliant hack to handle tracks which only store pregap info
+ if (!index01[0]) {
+ *prev = NULL;
+ return after;
+ }
playItem_t *it = malloc (sizeof (playItem_t));
memset (it, 0, sizeof (playItem_t));
it->decoder = decoder;