summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-16 15:10:35 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-16 15:10:35 +0200
commita1af75d83e9bae7dbc8597502d65551d90334ebe (patch)
tree37984fd639892b60353ba70db7898c6ce2acf56b /mplayer.c
parent287b62163eed8811b6cd33716c0691d328947d48 (diff)
downloadmpv-a1af75d83e9bae7dbc8597502d65551d90334ebe.tar.bz2
mpv-a1af75d83e9bae7dbc8597502d65551d90334ebe.tar.xz
mplayer.c: Fix compilation with dvdnav enabled
I had forgotten to check dvdnav-specific code after last merge of svn changes.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index edf72a0fd3..fd5623ff58 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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);
}
}