1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/udp: fix check for pthread_cond_wait return value

POSIX errno is positive. We have strict_pthread_cond_wait to handle
error code during development.

Signed-off-by: zhilizhao <zhilizhao@tencent.com>
Reviewed-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
Zhao Zhili 2021-06-21 22:32:49 +08:00 committed by Jun Zhao
parent 7ee17ec7e4
commit 30ca9980ff

View File

@ -550,9 +550,7 @@ static void *circular_buffer_task_tx( void *_URLContext)
while (len<4) {
if (s->close_req)
goto end;
if (pthread_cond_wait(&s->cond, &s->mutex) < 0) {
goto end;
}
pthread_cond_wait(&s->cond, &s->mutex);
len = av_fifo_size(s->fifo);
}