if (!global_flags.x264_video_to_http &&
!global_flags.av1_video_to_http) {
http_mux->add_packet(pkt, task.pts + global_delay(), task.dts + global_delay());
+ if (srt_mux != nullptr) {
+ srt_mux->add_packet(pkt, task.pts + global_delay(), task.dts + global_delay());
+ }
}
}
}
impl->set_http_mux(mux);
}
+void QuickSyncEncoder::set_srt_mux(Mux *mux)
+{
+ impl->set_srt_mux(mux);
+}
+
int64_t QuickSyncEncoder::global_delay() const {
return impl->global_delay();
}