From 6e991104ac44819f520a4048dc1d9dfb0b221f10 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 31 Jul 2010 22:11:50 +0200 Subject: fixed ogg-vorbis + cue --- plugins/vorbis/vorbis.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/vorbis') 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); -- cgit v1.2.3