webrtc-nice: fix compiler warning with older versions if libnice

warning: "HAVE_LIBNICE_CONSENT_FIX" is not defined, evaluates to 0 [-Wundef]

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8305>
This commit is contained in:
Tim-Philipp Müller 2025-01-14 17:22:12 +00:00 committed by GStreamer Marge Bot
parent ee0afa29d1
commit 5c2c688c4c

View file

@ -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