Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4e9f1e46
Commit
4e9f1e46
authored
Nov 20, 2015
by
Petri Hintukainen
Committed by
Jean-Baptiste Kempf
Nov 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add INPUT_NAV_POPUP and DEMUX_NAV_POPUP for BluRay pop-up menu
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
265466c5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
0 deletions
+18
-0
include/vlc_demux.h
include/vlc_demux.h
+1
-0
include/vlc_input.h
include/vlc_input.h
+1
-0
src/input/control.c
src/input/control.c
+1
-0
src/input/input.c
src/input/input.c
+2
-0
src/input/input_internal.h
src/input/input_internal.h
+1
-0
src/input/var.c
src/input/var.c
+12
-0
No files found.
include/vlc_demux.h
View file @
4e9f1e46
...
...
@@ -268,6 +268,7 @@ enum demux_query_e
DEMUX_NAV_DOWN
,
/* res=can fail */
DEMUX_NAV_LEFT
,
/* res=can fail */
DEMUX_NAV_RIGHT
,
/* res=can fail */
DEMUX_NAV_POPUP
,
/* res=can fail */
};
/*************************************************************************
...
...
include/vlc_input.h
View file @
4e9f1e46
...
...
@@ -432,6 +432,7 @@ enum input_query_e
INPUT_NAV_DOWN
,
INPUT_NAV_LEFT
,
INPUT_NAV_RIGHT
,
INPUT_NAV_POPUP
,
/* Meta datas */
INPUT_ADD_INFO
,
/* arg1= char* arg2= char* arg3=... res=can fail */
...
...
src/input/control.c
View file @
4e9f1e46
...
...
@@ -141,6 +141,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
case
INPUT_NAV_DOWN
:
case
INPUT_NAV_LEFT
:
case
INPUT_NAV_RIGHT
:
case
INPUT_NAV_POPUP
:
input_ControlPush
(
p_input
,
i_query
-
INPUT_NAV_ACTIVATE
+
INPUT_CONTROL_NAV_ACTIVATE
,
NULL
);
return
VLC_SUCCESS
;
...
...
src/input/input.c
View file @
4e9f1e46
...
...
@@ -1492,6 +1492,7 @@ static bool ControlIsSeekRequest( int i_type )
case
INPUT_CONTROL_NAV_DOWN
:
case
INPUT_CONTROL_NAV_LEFT
:
case
INPUT_CONTROL_NAV_RIGHT
:
case
INPUT_CONTROL_NAV_POPUP
:
return
true
;
default:
return
false
;
...
...
@@ -1970,6 +1971,7 @@ static bool Control( input_thread_t *p_input,
case
INPUT_CONTROL_NAV_DOWN
:
case
INPUT_CONTROL_NAV_LEFT
:
case
INPUT_CONTROL_NAV_RIGHT
:
case
INPUT_CONTROL_NAV_POPUP
:
demux_Control
(
p_input
->
p
->
master
->
p_demux
,
i_type
-
INPUT_CONTROL_NAV_ACTIVATE
+
DEMUX_NAV_ACTIVATE
);
break
;
...
...
src/input/input_internal.h
View file @
4e9f1e46
...
...
@@ -199,6 +199,7 @@ enum input_control_e
INPUT_CONTROL_NAV_DOWN
,
// INPUT_NAV_* and DEMUX_NAV_*.
INPUT_CONTROL_NAV_LEFT
,
INPUT_CONTROL_NAV_RIGHT
,
INPUT_CONTROL_NAV_POPUP
,
INPUT_CONTROL_SET_ES
,
INPUT_CONTROL_RESTART_ES
,
...
...
src/input/var.c
View file @
4e9f1e46
...
...
@@ -112,6 +112,7 @@ static const vlc_input_callback_t p_input_navigation_callbacks[] =
{
CALLBACK
(
"next-title"
,
TitleCallback
),
CALLBACK
(
"prev-title"
,
TitleCallback
),
CALLBACK
(
"menu-popup"
,
TitleCallback
),
CALLBACK
(
NULL
,
NULL
)
};
...
...
@@ -269,6 +270,13 @@ void input_ControlVarNavigation( input_thread_t *p_input )
var_Change
(
p_input
,
"prev-title"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_AddCallback
(
p_input
,
"prev-title"
,
TitleCallback
,
NULL
);
}
if
(
var_Type
(
p_input
,
"menu-popup"
)
==
0
)
{
var_Create
(
p_input
,
"menu-popup"
,
VLC_VAR_VOID
);
text
.
psz_string
=
_
(
"Menu popup"
);
var_Change
(
p_input
,
"menu-popup"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_AddCallback
(
p_input
,
"menu-popup"
,
TitleCallback
,
NULL
);
}
}
/* Create titles and chapters */
...
...
@@ -672,6 +680,10 @@ static int TitleCallback( vlc_object_t *p_this, char const *psz_cmd,
if
(
val
.
i_int
>=
0
)
var_Change
(
p_input
,
"title"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
}
else
if
(
!
strcmp
(
psz_cmd
,
"menu-popup"
)
)
{
input_ControlPush
(
p_input
,
INPUT_CONTROL_NAV_POPUP
,
NULL
);
}
else
{
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_TITLE
,
&
newval
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment