Lines Matching refs:tee
149 TeeContext *tee = avf->priv_data; in close_slaves() local
152 for (i = 0; i < tee->nb_slaves; i++) { in close_slaves()
153 close_slave(&tee->slaves[i]); in close_slaves()
155 av_freep(&tee->slaves); in close_slaves()
434 TeeContext *tee = avf->priv_data; in tee_process_slave_failure() local
435 TeeSlave *tee_slave = &tee->slaves[slave_idx]; in tee_process_slave_failure()
437 tee->nb_alive--; in tee_process_slave_failure()
441 if (!tee->nb_alive) { in tee_process_slave_failure()
449 slave_idx, av_err2str(err_n), tee->nb_alive, tee->nb_slaves); in tee_process_slave_failure()
456 TeeContext *tee = avf->priv_data; in tee_write_header() local
477 if (!(tee->slaves = av_mallocz_array(nb_slaves, sizeof(*tee->slaves)))) { in tee_write_header()
481 tee->nb_slaves = tee->nb_alive = nb_slaves; in tee_write_header()
485 tee->slaves[i].use_fifo = tee->use_fifo; in tee_write_header()
486 ret = av_dict_copy(&tee->slaves[i].fifo_options, tee->fifo_options, 0); in tee_write_header()
490 if ((ret = open_slave(avf, slaves[i], &tee->slaves[i])) < 0) { in tee_write_header()
495 log_slave(&tee->slaves[i], avf, AV_LOG_VERBOSE); in tee_write_header()
502 for (j = 0; j < tee->nb_slaves; j++) in tee_write_header()
503 if (tee->slaves[j].avf) in tee_write_header()
504 mapped += tee->slaves[j].stream_map[i] >= 0; in tee_write_header()
522 TeeContext *tee = avf->priv_data; in tee_write_trailer() local
526 for (i = 0; i < tee->nb_slaves; i++) { in tee_write_trailer()
527 if ((ret = close_slave(&tee->slaves[i])) < 0) { in tee_write_trailer()
533 av_freep(&tee->slaves); in tee_write_trailer()
539 TeeContext *tee = avf->priv_data; in tee_write_packet() local
547 for (i = 0; i < tee->nb_slaves; i++) { in tee_write_packet()
548 if (!(avf2 = tee->slaves[i].avf)) in tee_write_packet()
563 s2 = tee->slaves[i].stream_map[s]; in tee_write_packet()
572 bsfs = tee->slaves[i].bsfs[s2]; in tee_write_packet()