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
pull/822/head
Nicolas Werner 3 years ago
parent c0b2e8f9b7
commit b439e1fa41
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 3
      src/voip/WebRTCSession.cpp

@ -996,7 +996,8 @@ WebRTCSession::addVideoPipeline(int vp8PayloadType)
g_signal_emit_by_name(webrtcbin, "get-transceivers", &transceivers);
GstWebRTCRTPTransceiver *transceiver =
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);
}

Loading…
Cancel
Save