diff libmpdemux/demux_ogg.c @ 13501:a5004eb92a79

fix sub_select fiasco with global sub numbering. now multiple sub sources can be managed in essentially one list.
author joey
date Tue, 28 Sep 2004 13:51:20 +0000
parents 957fc21fc10a
children 05f846322437
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Tue Sep 28 13:43:47 2004 +0000
+++ b/libmpdemux/demux_ogg.c	Tue Sep 28 13:51:20 2004 +0000
@@ -146,6 +146,7 @@
 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 @@
       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