From d7d5d1ba933bc5190efa6a43e7a53efec317169e Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 19 Jul 2023 13:08:03 +0530 Subject: [PATCH] webrtcbin: Fix support for glib older than 2.74 G_CONNECT_DEFAULT was added in 2.74, and passing `0` in older versions gets the same behaviour. Part-of: --- subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c b/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c index aa97c3eb57..f25feb25d6 100644 --- a/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c +++ b/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c @@ -70,6 +70,10 @@ #define RTPHDREXT_STREAM_ID GST_RTP_HDREXT_BASE "sdes:rtp-stream-id" #define RTPHDREXT_REPAIRED_STREAM_ID GST_RTP_HDREXT_BASE "sdes:repaired-rtp-stream-id" +#if !GLIB_CHECK_VERSION(2, 74, 0) +#define G_CONNECT_DEFAULT 0 +#endif + /** * SECTION: element-webrtcbin * title: webrtcbin