mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-05-06 22:49:26 +08:00
eb90a2091f
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>