mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
mplayer.c: Fix compilation with dvdnav enabled
I had forgotten to check dvdnav-specific code after last merge of svn changes.
This commit is contained in:
parent
287b62163e
commit
a1af75d83e
@ -1897,10 +1897,10 @@ static void mp_dvdnav_reset_stream (MPContext *ctx) {
|
||||
}
|
||||
|
||||
audio_delay = 0.0f;
|
||||
if (dvdsub_lang && dvdsub_id == dvdsub_lang_id) {
|
||||
if (dvdsub_lang && opts->sub_id == dvdsub_lang_id) {
|
||||
dvdsub_lang_id = mp_dvdnav_sid_from_lang(ctx->stream, dvdsub_lang);
|
||||
if (dvdsub_lang_id != dvdsub_id) {
|
||||
dvdsub_id = dvdsub_lang_id;
|
||||
if (dvdsub_lang_id != opts->sub_id) {
|
||||
opts->sub_id = dvdsub_lang_id;
|
||||
select_subtitle(ctx);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user