diff options
author | 2010-07-31 22:11:50 +0200 | |
---|---|---|
committer | 2010-07-31 22:11:57 +0200 | |
commit | 6e991104ac44819f520a4048dc1d9dfb0b221f10 (patch) | |
tree | 64b6520eee1906b81899b6de44b3f864967bce94 /plugins/vorbis | |
parent | 0fcae3836afaea792bfb18a0150a8d87825d5378 (diff) |
fixed ogg-vorbis + cue
Diffstat (limited to 'plugins/vorbis')
-rw-r--r-- | plugins/vorbis/vorbis.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c index f419633a..250c8bac 100644 --- a/plugins/vorbis/vorbis.c +++ b/plugins/vorbis/vorbis.c @@ -144,7 +144,12 @@ cvorbis_init (DB_fileinfo_t *_info, DB_playItem_t *it) { ogg_info_t *info = (ogg_info_t *)_info; info->info.file = NULL; info->vi = NULL; - info->cur_bit_stream = it->tracknum; + if (it->endsample > 0) { + info->cur_bit_stream = -1; + } + else { + info->cur_bit_stream = it->tracknum; + } info->ptrack = it; deadbeef->pl_item_ref (it); |