| 515 | } |
| 516 | |
| 517 | static int tee_write_trailer(AVFormatContext *avf) |
| 518 | { |
| 519 | TeeContext *tee = avf->priv_data; |
| 520 | int ret_all = 0, ret; |
| 521 | |
| 522 | for (unsigned i = 0; i < tee->nb_slaves; i++) { |
| 523 | if ((ret = close_slave(&tee->slaves[i])) < 0) { |
| 524 | ret = tee_process_slave_failure(avf, i, ret); |
| 525 | if (!ret_all && ret < 0) |
| 526 | ret_all = ret; |
| 527 | } |
| 528 | } |
| 529 | av_freep(&tee->slaves); |
| 530 | return ret_all; |
| 531 | } |
| 532 | |
| 533 | static int tee_write_packet(AVFormatContext *avf, AVPacket *pkt) |
| 534 | { |
nothing calls this directly
no test coverage detected