diff options
author | wm4 <wm4@nowhere> | 2013-12-13 22:38:29 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-13 22:38:29 +0100 |
commit | ad571d629dd8e2c342eff5a831447fafb9bc0f22 (patch) | |
tree | 7c13f42134027ff4769531f1530c7c46ce957e6c | |
parent | 37319ab64452a605c4178711227383f0df31473e (diff) | |
download | mpv-ad571d629dd8e2c342eff5a831447fafb9bc0f22.tar.bz2 mpv-ad571d629dd8e2c342eff5a831447fafb9bc0f22.tar.xz |
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.
-rw-r--r-- | stream/stream_dvdnav.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |