POSIX errno is positive. We have strict_pthread_cond_wait to handle error code during development.
Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -550,9 +550,7 @@ static void *circular_buffer_task_tx( void *_URLContext) · 549 unmodified lines | ||
| 550 | 550 | while (len<4) { |
| 551 | 551 | if (s->close_req) |
| 552 | 552 | goto end; |
| 553 | − if (pthread_cond_wait(&s->cond, &s->mutex) < 0) { | |
| 554 | − goto end; | |
| 555 | − } | |
| 553 | + pthread_cond_wait(&s->cond, &s->mutex); | |
| 556 | 554 | len = av_fifo_size(s->fifo); |
| 557 | 555 | } |
| 558 | 556 | |