summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_ogg.c
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-28 13:51:20 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-28 13:51:20 +0000
commitbaef32bc2c0075af1d7687163000b34a0ded4ff2 (patch)
tree9f932d67d8e2f70fd8758404973d11a8ec3d6d3b /libmpdemux/demux_ogg.c
parent4ff50686d9a0725984186fd7d912420a7d7b8ade (diff)
downloadmpv-baef32bc2c0075af1d7687163000b34a0ded4ff2.tar.bz2
mpv-baef32bc2c0075af1d7687163000b34a0ded4ff2.tar.xz
fix sub_select fiasco with global sub numbering. now multiple sub sources can be managed in essentially one list.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13502 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_ogg.c')
-rw-r--r--libmpdemux/demux_ogg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c
index 2f03444de6..92415fb754 100644
--- a/libmpdemux/demux_ogg.c
+++ b/libmpdemux/demux_ogg.c
@@ -146,6 +146,7 @@ typedef struct ogg_demuxer {
extern int index_mode;
extern char *dvdsub_lang, *audio_lang;
+extern int dvdsub_id;
//-------- subtitle support - should be moved to decoder layer, and queue
// - subtitles up in demuxer buffer...
@@ -444,6 +445,7 @@ static void demux_ogg_check_comments(demuxer_t *d, ogg_stream_t *os, int id, vor
if (os->text && d->sub->id == -1 && demux_ogg_check_lang(val, dvdsub_lang))
{
d->sub->id = id;
+ dvdsub_id = index;
mp_msg(MSGT_DEMUX, MSGL_V, "Ogg demuxer: Displaying subtitle stream id %d which matched -slang %s\n", id, val);
}
else