mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
webrtc/nice: put usage of OPTION_CONSENT_FRESHNESS behind check
See https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/257 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4750>
This commit is contained in:
parent
4a4d7821a5
commit
211928ca41
2 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,9 @@ deps = [gstwebrtc_dep, libnice_dep]
|
|||
if libnice_dep.found()
|
||||
libnice_version = libnice_dep.version()
|
||||
libnice_c_args = []
|
||||
if libnice_version.version_compare('> 0.1.21.1')
|
||||
libnice_c_args += '-DHAVE_LIBNICE_CONSENT_FIX'
|
||||
endif
|
||||
libgstwebrtcnice = library('gstwebrtcnice-' + api_version,
|
||||
libgstwebrtcnice_sources, libgstwebrtcnice_headers,
|
||||
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_WEBRTCNICE', '-DG_LOG_DOMAIN="GStreamer-webrtcnice"'] + libnice_c_args,
|
||||
|
|
|
@ -1627,7 +1627,11 @@ gst_webrtc_nice_constructed (GObject * object)
|
|||
|
||||
options |= NICE_AGENT_OPTION_ICE_TRICKLE;
|
||||
options |= NICE_AGENT_OPTION_REGULAR_NOMINATION;
|
||||
|
||||
/* https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/257 */
|
||||
#if HAVE_LIBNICE_CONSENT_FIX
|
||||
options |= NICE_AGENT_OPTION_CONSENT_FRESHNESS;
|
||||
#endif
|
||||
|
||||
ice->priv->nice_agent = nice_agent_new_full (ice->priv->main_context,
|
||||
NICE_COMPATIBILITY_RFC5245, options);
|
||||
|
|
Loading…
Reference in a new issue