| 202 | } |
| 203 | |
| 204 | void av_thread_message_queue_set_err_recv(AVThreadMessageQueue *mq, |
| 205 | int err) |
| 206 | { |
| 207 | #if HAVE_THREADS |
| 208 | pthread_mutex_lock(&mq->lock); |
| 209 | mq->err_recv = err; |
| 210 | pthread_cond_broadcast(&mq->cond_recv); |
| 211 | pthread_mutex_unlock(&mq->lock); |
| 212 | #endif /* HAVE_THREADS */ |
| 213 | } |
| 214 | |
| 215 | #if HAVE_THREADS |
| 216 | static int free_func_wrap(void *arg, void *buf, size_t *nb_elems) |