mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user