| 583 | } |
| 584 | |
| 585 | static int fifo_write_header(AVFormatContext *avf) |
| 586 | { |
| 587 | FifoContext * fifo = avf->priv_data; |
| 588 | int ret; |
| 589 | |
| 590 | ret = pthread_create(&fifo->writer_thread, NULL, fifo_consumer_thread, avf); |
| 591 | if (ret) { |
| 592 | av_log(avf, AV_LOG_ERROR, "Failed to start thread: %s\n", |
| 593 | av_err2str(AVERROR(ret))); |
| 594 | ret = AVERROR(ret); |
| 595 | } |
| 596 | |
| 597 | return ret; |
| 598 | } |
| 599 | |
| 600 | static int fifo_write_packet(AVFormatContext *avf, AVPacket *pkt) |
| 601 | { |
nothing calls this directly
no test coverage detected