changeset 5627:a05efac12472

dvdnav hotfix
author arpi
date Mon, 15 Apr 2002 01:50:00 +0000
parents b7b40e65c070
children e1179cdffbf5
files mplayer.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Apr 15 00:36:21 2002 +0000
+++ b/mplayer.c	Mon Apr 15 01:50:00 2002 +0000
@@ -2440,6 +2440,9 @@
       dvdnav_priv_t * dvdnav_priv = (dvdnav_priv_t*)(stream->priv);
       dvdnav_event_t * dvdnav_event = (dvdnav_event_t *)(cmd->args[0].v.v);
 
+      /* ignore these events if we're not in dvd_nav mode */
+      if (!dvd_nav) break;
+
       if (!dvdnav_event) {
         printf("DVDNAV Event NULL?!\n");
         break;
@@ -2593,6 +2596,9 @@
     case MP_CMD_DVDNAV: {
       dvdnav_priv_t * dvdnav_priv=(dvdnav_priv_t*)stream->priv;
 
+      /* ignore these events if we're not in dvd_nav mode */
+      if (!dvd_nav) break;
+
       switch (cmd->args[0].v.i) {
         case MP_CMD_DVDNAV_UP:
           dvdnav_upper_button_select(dvdnav_priv->dvdnav);