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.
This commit is contained in:
wm4
2013-12-13 22:38:29 +01:00
parent 37319ab644
commit ad571d629d

View File

@@ -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 */