1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02: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:
Uoti Urpala 2009-11-16 15:10:35 +02:00
parent 287b62163e
commit a1af75d83e

View File

@ -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);
}
}