changeset 19769:cc67a85cb722

first touch of support for dvdnav menus; the selection is based on the keyboard selection and is completely blind: there's not the slightest visual feedback
author nicodvb
date Sat, 09 Sep 2006 21:45:23 +0000
parents 1069a634fc92
children 0b8e84663cb2
files mplayer.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Sep 09 21:37:57 2006 +0000
+++ b/mplayer.c	Sat Sep 09 21:45:23 2006 +0000
@@ -5139,6 +5139,17 @@
         }
         break;
     } break;
+#ifdef USE_DVDNAV
+    case MP_CMD_DVDNAV: {
+      if(stream->type != STREAMTYPE_DVDNAV) break;
+
+      if(mp_dvdnav_handle_input(stream, cmd->args[0].v.i)) {
+          uninit_player(INITED_ALL-(INITED_STREAM|INITED_INPUT));
+          goto goto_enable_cache;
+      }
+      break;
+    }
+#endif
     default : {
 #ifdef HAVE_NEW_GUI
       if ( ( use_gui )&&( cmd->id > MP_CMD_GUI_EVENTS ) ) guiGetEvent( guiIEvent,(char *)cmd->id );