Otherwise it might be used a second time for another media afterwards.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2310>
answer_dir = GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY;
}
- seen_transceivers = g_list_prepend (seen_transceivers, rtp_trans);
-
if (!rtp_trans) {
GstCaps *trans_caps;
trans = WEBRTC_TRANSCEIVER (rtp_trans);
}
+ seen_transceivers = g_list_prepend (seen_transceivers, rtp_trans);
+
if (gst_caps_is_empty (answer_caps)) {
GST_WARNING_OBJECT (webrtc, "Could not create caps for media");
gst_caps_unref (answer_caps);