[MPlayer-cvslog] r19783 - in trunk: input/input.c input/input.h stream/stream_dvdnav.c

nicodvb subversion at mplayerhq.hu
Sun Sep 10 12:25:48 CEST 2006


Author: nicodvb
Date: Sun Sep 10 12:25:48 2006
New Revision: 19783

Modified:
   trunk/input/input.c
   trunk/input/input.h
   trunk/stream/stream_dvdnav.c

Log:
permit to select previous dvdnav menu, in the order chapter->title->root

Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c	(original)
+++ trunk/input/input.c	Sun Sep 10 12:25:48 2006
@@ -317,6 +317,7 @@
   { { KEY_KP6, 0 }, "dvdnav 4" },   // right
   { { KEY_KP5, 0 }, "dvdnav 5" },   // menu
   { { KEY_KPENTER, 0 }, "dvdnav 6" },   // select
+  { { KEY_KP7, 0 }, "dvdnav 7" },   // previous menu
 #endif
 
   { { KEY_RIGHT, 0 }, "seek 10" },

Modified: trunk/input/input.h
==============================================================================
--- trunk/input/input.h	(original)
+++ trunk/input/input.h	Sun Sep 10 12:25:48 2006
@@ -113,6 +113,7 @@
 #define MP_CMD_DVDNAV_RIGHT     4
 #define MP_CMD_DVDNAV_MENU      5
 #define MP_CMD_DVDNAV_SELECT    6
+#define MP_CMD_DVDNAV_PREVMENU  7
 
 /// Console commands
 #define MP_CMD_CHELP 7000

Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c	(original)
+++ trunk/stream/stream_dvdnav.c	Sun Sep 10 12:25:48 2006
@@ -458,6 +458,21 @@
       status = dvdnav_menu_call(nav,DVD_MENU_Root);
       reset = 1;
       break;
+    case MP_CMD_DVDNAV_PREVMENU: {
+      int title=0, part=0;
+
+      dvdnav_current_title_info(nav, &title, &part);
+      if(title) {
+        if(dvdnav_menu_call(nav, DVD_MENU_Part) == DVDNAV_STATUS_OK
+           || dvdnav_menu_call(nav, DVD_MENU_Title) == DVDNAV_STATUS_OK) {
+          reset = 1;
+          break;
+        }
+      }
+      if(dvdnav_menu_call(nav, DVD_MENU_Root) == DVDNAV_STATUS_OK)
+        reset = 1;
+      }
+      break;
     case MP_CMD_DVDNAV_SELECT:
       status = dvdnav_button_activate(nav, pci);
       reset = 1;



More information about the MPlayer-cvslog mailing list