diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-12 19:01:54 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-12 19:01:54 +0200 |
commit | 0e2b34a5d1ecfb50e4105f04ebca40bb7bde05ed (patch) | |
tree | 726ccd5b9178d9fa27672c30b559e7c7a07300bb /playlist.c | |
parent | 7d96dc4cfab76927f38cd903cf8360014c7bf37c (diff) |
handle cue tracks that store only pregap info
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |