From 5c2c688c4ca399024565546e722fe9c9beb11054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 14 Jan 2025 17:22:12 +0000 Subject: [PATCH] webrtc-nice: fix compiler warning with older versions if libnice warning: "HAVE_LIBNICE_CONSENT_FIX" is not defined, evaluates to 0 [-Wundef] Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c b/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c index d93d742eeb..b61d03fb04 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c @@ -1682,7 +1682,7 @@ gst_webrtc_nice_constructed (GObject * object) options |= NICE_AGENT_OPTION_REGULAR_NOMINATION; /* https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/257 */ -#if HAVE_LIBNICE_CONSENT_FIX +#ifdef HAVE_LIBNICE_CONSENT_FIX options |= NICE_AGENT_OPTION_CONSENT_FRESHNESS; #endif