From abe7e724ed6e5e1e1c4ca07b55f5204cd350ec1a Mon Sep 17 00:00:00 2001 From: Sid Sethupathi Date: Fri, 14 May 2021 10:47:05 -0500 Subject: [PATCH] webrtcbin: update default jb latency docs Part-of: --- docs/plugins/gst_plugins_cache.json | 2 +- ext/webrtc/gstwebrtcbin.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json index 9c1ab73..8059a5d 100644 --- a/docs/plugins/gst_plugins_cache.json +++ b/docs/plugins/gst_plugins_cache.json @@ -225994,7 +225994,7 @@ "construct": false, "construct-only": false, "controllable": false, - "default": "0", + "default": "200", "max": "-1", "min": "0", "mutable": "null", diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index f7216b3..a23e240 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -62,6 +62,8 @@ /* The extra time for the rtpstorage compared to the RTP jitterbuffer (in ms) */ #define RTPSTORAGE_EXTRA_TIME (50) +#define DEFAULT_JB_LATENCY 200 + /** * SECTION: element-webrtcbin * title: webrtcbin @@ -7111,7 +7113,8 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass) PROP_LATENCY, g_param_spec_uint ("latency", "Latency", "Default duration to buffer in the jitterbuffers (in ms)", - 0, G_MAXUINT, 200, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + 0, G_MAXUINT, DEFAULT_JB_LATENCY, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** * GstWebRTCBin::create-offer: @@ -7437,4 +7440,5 @@ gst_webrtc_bin_init (GstWebRTCBin * webrtc) /* we start off closed until we move to READY */ webrtc->priv->is_closed = TRUE; + webrtc->priv->jb_latency = DEFAULT_JB_LATENCY; } -- 2.7.4