Make -slang work again, sub->id is -2 by default, so -slang would be ignored

with old code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21052 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-11-19 13:38:37 +00:00
parent ceecfca462
commit 8f14f6d551
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ static void demux_ogg_check_comments(demuxer_t *d, ogg_stream_t *os, int id, vor
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;