mirror of
https://github.com/mpv-player/mpv
synced 2024-09-05 02:48:21 +02:00
permit to select previous dvdnav menu, in the order chapter->title->root
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19783 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5b2e0d6411
commit
caa3c79989
@ -317,6 +317,7 @@ static mp_cmd_bind_t def_cmd_binds[] = {
|
||||
{ { 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" },
|
||||
|
@ -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
|
||||
|
@ -458,6 +458,21 @@ int mp_dvdnav_handle_input(stream_t *stream, int cmd, int *button) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user