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
f5187553
Commit
f5187553
authored
Nov 30, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
picture_pool: do not fail if pictures are available immediately
This avoids spurious errors in the decoders (and logs).
parent
4b0d2358
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/misc/picture_pool.c
src/misc/picture_pool.c
+7
-6
No files found.
src/misc/picture_pool.c
View file @
f5187553
...
@@ -244,13 +244,14 @@ picture_t *picture_pool_Wait(picture_pool_t *pool)
...
@@ -244,13 +244,14 @@ picture_t *picture_pool_Wait(picture_pool_t *pool)
vlc_mutex_lock
(
&
pool
->
lock
);
vlc_mutex_lock
(
&
pool
->
lock
);
assert
(
pool
->
refs
>
0
);
assert
(
pool
->
refs
>
0
);
while
(
pool
->
available
==
0
&&
!
pool
->
canceled
)
while
(
pool
->
available
==
0
)
vlc_cond_wait
(
&
pool
->
wait
,
&
pool
->
lock
);
if
(
pool
->
canceled
)
{
{
vlc_mutex_unlock
(
&
pool
->
lock
);
if
(
pool
->
canceled
)
return
NULL
;
{
vlc_mutex_unlock
(
&
pool
->
lock
);
return
NULL
;
}
vlc_cond_wait
(
&
pool
->
wait
,
&
pool
->
lock
);
}
}
i
=
ffsll
(
pool
->
available
);
i
=
ffsll
(
pool
->
available
);
...
...
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