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
de050c43
Commit
de050c43
authored
Sep 16, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotkeys: use the new object locking API
parent
8fec0913
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
modules/control/hotkeys.c
modules/control/hotkeys.c
+2
-5
No files found.
modules/control/hotkeys.c
View file @
de050c43
...
...
@@ -154,7 +154,7 @@ static void Run( intf_thread_t *p_intf )
var_Set
(
p_intf
->
p_libvlc
,
p_hotkeys
[
i
].
psz_action
,
val
);
}
while
(
!
intf_ShouldDie
(
p_intf
)
)
for
(
vlc_bool_t
b_quit
=
VLC_FALSE
;
!
b_quit
;
)
{
int
i_key
,
i_action
;
int
i_times
=
0
;
...
...
@@ -204,11 +204,8 @@ static void Run( intf_thread_t *p_intf )
if
(
!
i_action
)
{
vlc_mutex_lock
(
&
p_intf
->
object_lock
);
vlc_cond_wait
(
&
p_intf
->
object_wait
,
&
p_intf
->
object_lock
);
vlc_mutex_unlock
(
&
p_intf
->
object_lock
);
b_quit
=
vlc_object_lock_and_wait
(
p_intf
);
/* No key pressed, sleep a bit more */
// msleep( INTF_IDLE_SLEEP );
continue
;
}
...
...
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