summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/vorbis/vorbis.c7
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);