]> git.sesse.net Git - nageru/blobdiff - nageru/quicksync_encoder.cpp
Implement SRT output.
[nageru] / nageru / quicksync_encoder.cpp
index 0d0fbec7d23f42155c2ae5165148976dbd745644..d75dbeb7372ea4a2553a753bce40b94a72e41751 100644 (file)
@@ -1353,6 +1353,7 @@ void QuickSyncEncoderImpl::save_codeddata(GLSurface *surf, storage_task task)
                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());
+                       srt_mux->add_packet(pkt, task.pts + global_delay(), task.dts + global_delay());
                }
        }
 }
@@ -2050,6 +2051,11 @@ void QuickSyncEncoder::set_http_mux(Mux *mux)
        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();
 }