From 1b20fbc7408164079cf5ff64a273ce955d51cfb7 Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Wed, 25 May 2022 22:05:45 +0300 Subject: QXmppCallStream: use new GStreamer method instead of deprecated one when build with GStreamer >= 1.20.0 --- src/client/QXmppCallStream.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/QXmppCallStream.cpp') diff --git a/src/client/QXmppCallStream.cpp b/src/client/QXmppCallStream.cpp index 6bd88998..d3621bdd 100644 --- a/src/client/QXmppCallStream.cpp +++ b/src/client/QXmppCallStream.cpp @@ -226,7 +226,11 @@ void QXmppCallStreamPrivate::addEncoder(QXmppCallPrivate::GstCodec &codec) gst_element_sync_state_with_parent(encoderBin); +#if GST_CHECK_VERSION(1,20,0) + addRtcpSender(gst_element_request_pad_simple(rtpbin, QStringLiteral("send_rtcp_src_%1").arg(id).toLatin1().data())); +#else addRtcpSender(gst_element_get_request_pad(rtpbin, QStringLiteral("send_rtcp_src_%1").arg(id).toLatin1().data())); +#endif } void QXmppCallStreamPrivate::addDecoder(GstPad *pad, QXmppCallPrivate::GstCodec &codec) -- cgit v1.2.3