webrtc: fix build with older libnice versions
authorTim-Philipp Müller <tim@centricular.com>
Thu, 26 May 2022 13:08:55 +0000 (14:08 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 26 May 2022 18:17:49 +0000 (18:17 +0000)
commit962dc37d4f6c72fc8b348d227b3c91885fd236dd
tree827edc622ccacc5b859c3c4d6f996b5dcdb08f0a
parent7f2fb3b783a064bc07603e5f28a3d18d5471045a
webrtc: fix build with older libnice versions

1) check for right macro name when checking for NICE_VERSION_CHECK

2) if libnice version is 0.1.18.1 this should not satisfy
   a NICE_VERSION_CHECK(0,1,19).

Fixes build with libnice 0.1.18.1 subproject checkout.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2499>
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcice.c