[Mplayer-cvslog] CVS: main mplayer.c,1.467,1.468

Arpi of Ize arpi at mplayer.dev.hu
Mon Apr 15 03:50:02 CEST 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv18931

Modified Files:
	mplayer.c 
Log Message:
dvdnav hotfix

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.467
retrieving revision 1.468
diff -u -r1.467 -r1.468
--- mplayer.c	14 Apr 2002 19:43:23 -0000	1.467
+++ mplayer.c	15 Apr 2002 01:50:00 -0000	1.468
@@ -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;
@@ -2592,6 +2595,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:




More information about the MPlayer-cvslog mailing list