summaryrefslogtreecommitdiff
path: root/plugins/vorbis
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-22 15:00:17 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-22 15:00:17 +0200
commita5af3bc3fe335d1349170ed49dda6517b738b417 (patch)
treecdb43c10e06535e40f2c344390033beb95128c11 /plugins/vorbis
parentff0d143f031a9c2b581403d1257c06a70054bb4c (diff)
fixed reloading metadata on multitrack ogg files
Diffstat (limited to 'plugins/vorbis')
-rw-r--r--plugins/vorbis/vorbis.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index c9601c21..6bbaa01b 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -406,6 +406,7 @@ cvorbis_insert (DB_playItem_t *after, const char *fname) {
if (nstreams > 0) {
it->startsample = currentsample;
it->endsample = currentsample + totalsamples;
+ deadbeef->pl_set_item_flags (it, DDB_IS_SUBTRACK);
}
// metainfo
@@ -481,14 +482,14 @@ cvorbis_read_metadata (DB_playItem_t *it) {
trace ("cvorbis_read_metadata: ov_open_callbacks returned %d\n", res);
goto error;
}
- vi = ov_info (&vorbis_file, -1);
+ vi = ov_info (&vorbis_file, it->tracknum);
if (!vi) { // not a vorbis stream
trace ("cvorbis_read_metadata: failed to ov_open %s\n", it->fname);
goto error;
}
// metainfo
- vorbis_comment *vc = ov_comment (&vorbis_file, -1);
+ vorbis_comment *vc = ov_comment (&vorbis_file, it->tracknum);
if (vc) {
update_vorbis_comments (it, vc);
}