Preliminary gstreamer 1.20 compatibility

The transceiver was made private in
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2241

The direction property was added here:
28b0be4036
This commit is contained in:
Nicolas Werner 2021-11-19 18:19:16 +01:00
parent c0b2e8f9b7
commit b439e1fa41
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -996,7 +996,8 @@ WebRTCSession::addVideoPipeline(int vp8PayloadType)
g_signal_emit_by_name(webrtcbin, "get-transceivers", &transceivers); g_signal_emit_by_name(webrtcbin, "get-transceivers", &transceivers);
GstWebRTCRTPTransceiver *transceiver = GstWebRTCRTPTransceiver *transceiver =
g_array_index(transceivers, GstWebRTCRTPTransceiver *, 1); g_array_index(transceivers, GstWebRTCRTPTransceiver *, 1);
transceiver->direction = GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY; g_object_set(
transceiver, "direction", GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY, nullptr);
g_array_unref(transceivers); g_array_unref(transceivers);
} }