From 6c64cf663a4a53841064f8d1d04bb698d9cf84d2 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Sun, 29 Oct 2023 17:29:40 +0700 Subject: [PATCH] Use shared factory pipeline --- src/rtsp/gst/factory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtsp/gst/factory.rs b/src/rtsp/gst/factory.rs index bda1857..469abf8 100644 --- a/src/rtsp/gst/factory.rs +++ b/src/rtsp/gst/factory.rs @@ -36,7 +36,7 @@ impl Default for NeoMediaFactory { impl NeoMediaFactory { fn new() -> Self { let factory = Object::new::(); - factory.set_shared(false); + factory.set_shared(true); factory.set_eos_shutdown(false); factory.set_stop_on_disconnect(false); // factory.set_publish_clock_mode(gstreamer_rtsp_server::RTSPPublishClockMode::Clock);