POSIX errno is positive. We have strict_pthread_cond_wait to handle error code during development.
Unified · Split
| @@ -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 | ||