diff libmpdemux/demux_ogg.c @ 21036:cdf75ea331c9

Make -slang work again, sub->id is -2 by default, so -slang would be ignored with old code.
author reimar
date Sun, 19 Nov 2006 13:38:37 +0000
parents a384688bff57
children bfd340cdac88
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Sun Nov 19 13:12:46 2006 +0000
+++ b/libmpdemux/demux_ogg.c	Sun Nov 19 13:38:37 2006 +0000
@@ -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;