From ad571d629dd8e2c342eff5a831447fafb9bc0f22 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 13 Dec 2013 22:38:29 +0100 Subject: dvdnav: remove highlights if no PCI available Not sure if this actually can happen. It doesn't remove the problem that mpv sometimes shows highlights on nav screens which have no highlight. --- stream/stream_dvdnav.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stream/stream_dvdnav.c') diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index b6a5aae554..becc44bf34 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -116,8 +116,10 @@ static void dvdnav_get_highlight(struct priv *priv, int display_mode) return; pnavpci = dvdnav_get_current_nav_pci(priv->dvdnav); - if (!pnavpci) + if (!pnavpci) { + hlev->display = 0; return; + } dvdnav_get_current_highlight(priv->dvdnav, &(hlev->buttonN)); hlev->display = display_mode; /* show */ -- cgit v1.2.3