From: Sebastian Dröge Date: Thu, 12 Aug 2021 12:25:50 +0000 (+0300) Subject: webrtcbin: Use the correct media for deciding the media kind when creating the transc... X-Git-Tag: 1.19.3~507^2~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a03acc546eecc1e0c68eadf1d8cab0c97aa112f;p=platform%2Fupstream%2Fgstreamer.git webrtcbin: Use the correct media for deciding the media kind when creating the transceiver from the SDP Part-of: --- diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index 88f956b..f5a8303 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;