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
ac434f31
Commit
ac434f31
authored
Mar 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't create an unused variable per action
parent
38d28036
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
modules/control/hotkeys.c
modules/control/hotkeys.c
+4
-7
No files found.
modules/control/hotkeys.c
View file @
ac434f31
...
@@ -135,19 +135,16 @@ static void Close( vlc_object_t *p_this )
...
@@ -135,19 +135,16 @@ static void Close( vlc_object_t *p_this )
static
void
Run
(
intf_thread_t
*
p_intf
)
static
void
Run
(
intf_thread_t
*
p_intf
)
{
{
vout_thread_t
*
p_vout
=
NULL
;
vout_thread_t
*
p_vout
=
NULL
;
struct
hotkey
*
p_hotkeys
=
p_intf
->
p_libvlc
->
p_hotkeys
;
vlc_value_t
val
;
vlc_value_t
val
;
int
i
;
int
i
;
playlist_t
*
p_playlist
=
pl_Yield
(
p_intf
);
playlist_t
*
p_playlist
=
pl_Yield
(
p_intf
);
/* Initialize hotkey structure */
/* Initialize hotkey structure */
for
(
i
=
0
;
p_hotkeys
[
i
].
psz_action
!=
NULL
;
i
++
)
for
(
struct
hotkey
*
p_hotkey
=
p_intf
->
p_libvlc
->
p_hotkeys
;
p_hotkey
->
psz_action
!=
NULL
;
p_hotkey
++
)
{
{
var_Create
(
p_intf
->
p_libvlc
,
p_hotkeys
[
i
].
psz_action
,
p_hotkey
->
i_key
=
config_GetInt
(
p_intf
,
p_hotkey
->
psz_action
);
VLC_VAR_HOTKEY
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_intf
->
p_libvlc
,
p_hotkeys
[
i
].
psz_action
,
&
val
);
var_Set
(
p_intf
->
p_libvlc
,
p_hotkeys
[
i
].
psz_action
,
val
);
}
}
for
(
;;
)
for
(
;;
)
...
...
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