Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
55ed91c8
Commit
55ed91c8
authored
Jul 19, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
threads: fix a potential race spotted by helgrind.
parent
652887d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pthread.c
libavcodec/pthread.c
+1
-1
No files found.
libavcodec/pthread.c
View file @
55ed91c8
...
...
@@ -975,9 +975,9 @@ int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f)
avctx
->
get_buffer
==
avcodec_default_get_buffer
)
{
err
=
avctx
->
get_buffer
(
avctx
,
f
);
}
else
{
pthread_mutex_lock
(
&
p
->
progress_mutex
);
p
->
requested_frame
=
f
;
p
->
state
=
STATE_GET_BUFFER
;
pthread_mutex_lock
(
&
p
->
progress_mutex
);
pthread_cond_broadcast
(
&
p
->
progress_cond
);
while
(
p
->
state
!=
STATE_SETTING_UP
)
...
...
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