mirror of https://github.com/mpv-player/mpv
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);
|
ogg_d->text_langs[index] = strdup(val);
|
||||||
}
|
}
|
||||||
// check for -slang if subs are uninitialized yet
|
// 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;
|
d->sub->id = id;
|
||||||
dvdsub_id = index;
|
dvdsub_id = index;
|
||||||
|
|
Loading…
Reference in New Issue