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
6b19e711
Commit
6b19e711
authored
Jul 10, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
omx: fix timeout handling
parent
0a7e31db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/codec/omxil/utils.c
modules/codec/omxil/utils.c
+4
-3
No files found.
modules/codec/omxil/utils.c
View file @
6b19e711
...
@@ -81,13 +81,14 @@ OMX_ERRORTYPE WaitForOmxEvent(OmxEventQueue *queue, OMX_EVENTTYPE *event,
...
@@ -81,13 +81,14 @@ OMX_ERRORTYPE WaitForOmxEvent(OmxEventQueue *queue, OMX_EVENTTYPE *event,
OMX_U32
*
data_1
,
OMX_U32
*
data_2
,
OMX_PTR
*
event_data
)
OMX_U32
*
data_1
,
OMX_U32
*
data_2
,
OMX_PTR
*
event_data
)
{
{
OmxEvent
*
p_event
;
OmxEvent
*
p_event
;
mtime_t
deadline
=
mdate
()
+
CLOCK_FREQ
;
vlc_mutex_lock
(
&
queue
->
mutex
);
vlc_mutex_lock
(
&
queue
->
mutex
);
if
(
!
queue
->
p_events
)
while
((
p_event
=
queue
->
p_events
)
==
NULL
)
vlc_cond_timedwait
(
&
queue
->
cond
,
&
queue
->
mutex
,
mdate
()
+
CLOCK_FREQ
);
if
(
vlc_cond_timedwait
(
&
queue
->
cond
,
&
queue
->
mutex
,
deadline
))
break
;
p_event
=
queue
->
p_events
;
if
(
p_event
)
if
(
p_event
)
{
{
queue
->
p_events
=
p_event
->
next
;
queue
->
p_events
=
p_event
->
next
;
...
...
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