[MPlayer-cvslog] r21052 - trunk/libmpdemux/demux_ogg.c

reimar subversion at mplayerhq.hu
Sun Nov 19 14:38:37 CET 2006


Author: reimar
Date: Sun Nov 19 14:38:37 2006
New Revision: 21052

Modified:
   trunk/libmpdemux/demux_ogg.c

Log:
Make -slang work again, sub->id is -2 by default, so -slang would be ignored
with old code.


Modified: trunk/libmpdemux/demux_ogg.c
==============================================================================
--- trunk/libmpdemux/demux_ogg.c	(original)
+++ trunk/libmpdemux/demux_ogg.c	Sun Nov 19 14:38:37 2006
@@ -486,7 +486,7 @@
 	ogg_d->text_langs[index] = strdup(val);
       }
       // check for -slang if subs are uninitialized yet
-      if (os->text && d->sub->id == -1 && demux_ogg_check_lang(val, dvdsub_lang))
+      if (os->text && d->sub->id < 0 && demux_ogg_check_lang(val, dvdsub_lang))
       {
 	d->sub->id = id;
 	dvdsub_id = index;



More information about the MPlayer-cvslog mailing list