diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-11-19 18:19:16 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-11-19 18:19:16 +0100 |
commit | b439e1fa41b26db5f1d0d16bd1da664338b435e7 (patch) | |
tree | 8925fce539c976e825fdd12b0e1af326b2ed42ac /src | |
parent | Fix jdenticon plugin not loading (diff) | |
download | nheko-b439e1fa41b26db5f1d0d16bd1da664338b435e7.tar.xz |
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: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/commit/28b0be4036ac59d6e6068586ab7bc55e8ac51166
Diffstat (limited to 'src')
-rw-r--r-- | src/voip/WebRTCSession.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/voip/WebRTCSession.cpp b/src/voip/WebRTCSession.cpp index 801a365c..a01b3a39 100644 --- a/src/voip/WebRTCSession.cpp +++ b/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); } |