aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-10-10 11:05:40 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-10-13 05:50:00 -0400
commiteb90a2091ffb94d8c29aaa5ff50f4192520254fc (patch)
tree86a3e267527f39fca087c8c51242c2acaef933a2 /libavcodec/h264.h
parentc9ef6b09326a24010bf86d6b0d19cfa42df4d546 (diff)
downloadffmpeg-eb90a2091ffb94d8c29aaa5ff50f4192520254fc.tar.gz
pthread: Fix deadlock during thread initialization
Sometimes, if pthread_create() failed, then pthread_cond_wait() could accidentally be called in the worker threads after the uninit function had already called pthread_cond_broadcast(), leading to a deadlock. Don't call pthread_cond_wait() if c->done is set. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/h264.h')
0 files changed, 0 insertions, 0 deletions