From 7a03acc546eecc1e0c68eadf1d8cab0c97aa112f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 12 Aug 2021 15:25:50 +0300 Subject: webrtcbin: Use the correct media for deciding the media kind when creating the transceiver from the SDP Part-of: --- ext/webrtc/gstwebrtcbin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index 88f956bcb..f5a83034f 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -3718,7 +3718,7 @@ _create_answer_task (GstWebRTCBin * webrtc, const GstStructure * options, GstCaps *trans_caps; GstWebRTCKind kind = GST_WEBRTC_KIND_UNKNOWN; - if (g_strcmp0 (gst_sdp_media_get_media (media), "audio") == 0) + if (g_strcmp0 (gst_sdp_media_get_media (offer_media), "audio") == 0) kind = GST_WEBRTC_KIND_AUDIO; else kind = GST_WEBRTC_KIND_VIDEO; -- cgit v1.2.1