History

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.

Zhao Zhili committed 5 years ago

Commit 30ca9981 parent 7ee17ec1 file · +1 −3Browse files

Unified · Split

libavformat/udp.c+1−3
@@ -550,9 +550,7 @@ static void *circular_buffer_task_tx( void *_URLContext) · 549 unmodified lines
550550 while (len<4) {
551551 if (s->close_req)
552552 goto end;
553− if (pthread_cond_wait(&s->cond, &s->mutex) < 0) {
554− goto end;
555− }
553+ pthread_cond_wait(&s->cond, &s->mutex);
556554 len = av_fifo_size(s->fifo);
557555 }
558556

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t