diff options
author | Sid Sethupathi <sid.sethupathi@gmail.com> | 2021-05-14 10:47:05 -0500 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-05-19 03:53:55 +0000 |
commit | abe7e724ed6e5e1e1c4ca07b55f5204cd350ec1a (patch) | |
tree | 17999a7291a33b7971a4dee4c963b68642f21526 /ext | |
parent | 20ca07d174f88494544f83ba072574c66a6d1aae (diff) | |
download | gstreamer-plugins-bad-abe7e724ed6e5e1e1c4ca07b55f5204cd350ec1a.tar.gz |
webrtcbin: update default jb latency docs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2242>
Diffstat (limited to 'ext')
-rw-r--r-- | ext/webrtc/gstwebrtcbin.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index f7216b3c1..a23e24054 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; } |