mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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:
parent
ceecfca462
commit
8f14f6d551
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user