| 52 | }; |
| 53 | |
| 54 | void tq_free(ThreadQueue **ptq) |
| 55 | { |
| 56 | ThreadQueue *tq = *ptq; |
| 57 | |
| 58 | if (!tq) |
| 59 | return; |
| 60 | |
| 61 | av_container_fifo_free(&tq->fifo); |
| 62 | av_fifo_freep2(&tq->fifo_stream_index); |
| 63 | |
| 64 | av_freep(&tq->finished); |
| 65 | |
| 66 | pthread_cond_destroy(&tq->cond); |
| 67 | pthread_mutex_destroy(&tq->lock); |
| 68 | |
| 69 | av_freep(ptq); |
| 70 | } |
| 71 | |
| 72 | ThreadQueue *tq_alloc(unsigned int nb_streams, size_t queue_size, |
| 73 | enum ThreadQueueType type) |
no test coverage detected