You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +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:
@@ -550,9 +550,7 @@ static void *circular_buffer_task_tx( void *_URLContext)
|
|||||||
while (len<4) {
|
while (len<4) {
|
||||||
if (s->close_req)
|
if (s->close_req)
|
||||||
goto end;
|
goto end;
|
||||||
if (pthread_cond_wait(&s->cond, &s->mutex) < 0) {
|
pthread_cond_wait(&s->cond, &s->mutex);
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
len = av_fifo_size(s->fifo);
|
len = av_fifo_size(s->fifo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user