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

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

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

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