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
453264d4
Commit
453264d4
authored
Feb 19, 2014
by
Felix Abecassis
Committed by
Jean-Baptiste Kempf
Feb 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: refactor deadline computation for cond_timedwait in vout_control_Pop
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
07be06c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/video_output/control.c
src/video_output/control.c
+3
-6
No files found.
src/video_output/control.c
View file @
453264d4
...
...
@@ -185,14 +185,11 @@ int vout_control_Pop(vout_control_t *ctrl, vout_control_cmd_t *cmd,
vlc_cond_broadcast
(
&
ctrl
->
wait_acknowledge
);
const
mtime_t
max_deadline
=
mdate
()
+
timeout
;
const
mtime_t
wait_deadline
=
deadline
<=
VLC_TS_INVALID
?
max_deadline
:
__MIN
(
deadline
,
max_deadline
);
/* Spurious wakeups are perfectly fine */
if
(
ctrl
->
can_sleep
)
{
if
(
deadline
<=
VLC_TS_INVALID
)
vlc_cond_timedwait
(
&
ctrl
->
wait_request
,
&
ctrl
->
lock
,
max_deadline
);
else
vlc_cond_timedwait
(
&
ctrl
->
wait_request
,
&
ctrl
->
lock
,
__MIN
(
deadline
,
max_deadline
));
}
if
(
ctrl
->
can_sleep
)
vlc_cond_timedwait
(
&
ctrl
->
wait_request
,
&
ctrl
->
lock
,
wait_deadline
);
}
bool
has_cmd
;
...
...
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