aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg4video_parser.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-10-10 11:05:40 -0400
committerSean McGovern <gseanmcg@gmail.com>2013-10-21 12:25:16 -0400
commit1a5a6ac01b0ad2cf3d2128372ea41f3c1cfc2d3f (patch)
tree9f8b219a093359ef74880d18a5714912a5f5e9d1 /libavcodec/mpeg4video_parser.c
parentbb81b2b2e06abbf713094f8b77b4cbd550c02503 (diff)
downloadffmpeg-1a5a6ac01b0ad2cf3d2128372ea41f3c1cfc2d3f.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/mpeg4video_parser.c')
0 files changed, 0 insertions, 0 deletions