diff --git a/SrtReceiverSource.cpp b/SrtReceiverSource.cpp index f602d4b..c6d4b09 100644 --- a/SrtReceiverSource.cpp +++ b/SrtReceiverSource.cpp @@ -23,7 +23,7 @@ void SrtReceiverSource::setConnection(const std::string &ip, const std::string & port_ = port; Log::Notify("Creating Source SRT receiving from '%s'", uri().c_str()); - std::string description = "srtsrc uri=" + uri() + " ! tsdemux ! decodebin ! videoconvert"; + std::string description = "srtsrc uri=" + uri() + " latency=200 ! tsdemux ! decodebin ! videoconvert"; // open gstreamer stream_->open(description); diff --git a/VideoBroadcast.cpp b/VideoBroadcast.cpp index 942518e..3fd2a19 100644 --- a/VideoBroadcast.cpp +++ b/VideoBroadcast.cpp @@ -101,9 +101,9 @@ std::string VideoBroadcast::init(GstCaps *caps) } // TODO Configure options - // setup SRT streaming sink properties + // setup SRT streaming sink properties (latency) g_object_set (G_OBJECT (gst_bin_get_by_name (GST_BIN (pipeline_), "sink")), - "latency", 1000, + "latency", 200, "wait-for-connection", false, NULL);