Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e715fddb
Commit
e715fddb
authored
Jan 31, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Old RC: remove non-working menu command
parent
e1f4d89e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
67 deletions
+0
-67
modules/control/rc.c
modules/control/rc.c
+0
-67
No files found.
modules/control/rc.c
View file @
e715fddb
...
...
@@ -41,7 +41,6 @@
#include <vlc_interface.h>
#include <vlc_aout.h>
#include <vlc_vout.h>
#include <vlc_osd.h>
#include <vlc_playlist.h>
#include <vlc_keys.h>
...
...
@@ -108,8 +107,6 @@ static int AudioDevice ( vlc_object_t *, char const *,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
AudioChannel
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
Menu
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
Statistics
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
...
...
@@ -399,9 +396,6 @@ static void RegisterCallbacks( intf_thread_t *p_intf )
ADD
(
"goto"
,
INTEGER
,
Playlist
)
ADD
(
"status"
,
INTEGER
,
Playlist
)
/* OSD menu commands */
ADD
(
"menu"
,
STRING
,
Menu
)
/* DVD commands */
ADD
(
"pause"
,
VOID
,
Input
)
ADD
(
"seek"
,
INTEGER
,
Input
)
...
...
@@ -1784,67 +1778,6 @@ out:
return
ret
;
}
/* OSD menu commands */
static
int
Menu
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
p_data
);
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
playlist_t
*
p_playlist
=
p_intf
->
p_sys
->
p_playlist
;
int
i_error
=
VLC_SUCCESS
;
vlc_value_t
val
;
if
(
!*
newval
.
psz_string
)
{
msg_rc
(
"%s"
,
_
(
"Please provide one of the following parameters:"
)
);
msg_rc
(
"[on|off|up|down|left|right|select]"
);
return
VLC_EGENERIC
;
}
input_thread_t
*
p_input
=
playlist_CurrentInput
(
p_playlist
);
if
(
p_input
)
{
var_Get
(
p_input
,
"state"
,
&
val
);
vlc_object_release
(
p_input
);
if
(
(
val
.
i_int
==
PAUSE_S
)
&&
(
strcmp
(
newval
.
psz_string
,
"select"
)
!=
0
)
)
{
msg_rc
(
"%s"
,
_
(
"Type 'menu select' or 'pause' to continue."
)
);
return
VLC_EGENERIC
;
}
}
val
.
psz_string
=
strdup
(
newval
.
psz_string
);
if
(
!
val
.
psz_string
)
return
VLC_ENOMEM
;
if
(
!
strcmp
(
val
.
psz_string
,
"on"
)
||
!
strcmp
(
val
.
psz_string
,
"show"
))
osd_MenuShow
(
p_this
);
else
if
(
!
strcmp
(
val
.
psz_string
,
"off"
)
||
!
strcmp
(
val
.
psz_string
,
"hide"
)
)
osd_MenuHide
(
p_this
);
else
if
(
!
strcmp
(
val
.
psz_string
,
"up"
)
)
osd_MenuUp
(
p_this
);
else
if
(
!
strcmp
(
val
.
psz_string
,
"down"
)
)
osd_MenuDown
(
p_this
);
else
if
(
!
strcmp
(
val
.
psz_string
,
"left"
)
)
osd_MenuPrev
(
p_this
);
else
if
(
!
strcmp
(
val
.
psz_string
,
"right"
)
)
osd_MenuNext
(
p_this
);
else
if
(
!
strcmp
(
val
.
psz_string
,
"select"
)
)
osd_MenuActivate
(
p_this
);
else
{
msg_rc
(
"%s"
,
_
(
"Please provide one of the following parameters:"
)
);
msg_rc
(
"[on|off|up|down|left|right|select]"
);
i_error
=
VLC_EGENERIC
;
}
free
(
val
.
psz_string
);
return
i_error
;
}
static
int
Statistics
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
...
...
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