summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index d317835b15..d8fcff635f 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -183,6 +183,10 @@ static int max_framesize=0;
#include "stream/stream_dvd.h"
#endif
+#ifdef USE_DVDNAV
+#include "stream/stream_dvdnav.h"
+#endif
+
#include "libmpcodecs/dec_audio.h"
#include "libmpcodecs/dec_video.h"
#include "libmpcodecs/mp_image.h"
@@ -4698,9 +4702,10 @@ if(auto_quality>0){
#ifdef USE_DVDNAV
if (stream->type == STREAMTYPE_DVDNAV) {
- extern int dvd_nav_hl_on;
+ nav_highlight_t hl;
- if (dvd_nav_hl_on)
+ mp_dvdnav_get_highlight (&hl);
+ if (hl.sx != 0 && hl.sy != 0) /* highlighting on */
vo_osd_changed (OSDTYPE_DVDNAV);
}
#endif