summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-11-19 18:19:16 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-11-19 18:19:16 +0100
commitb439e1fa41b26db5f1d0d16bd1da664338b435e7 (patch)
tree8925fce539c976e825fdd12b0e1af326b2ed42ac /src
parentFix jdenticon plugin not loading (diff)
downloadnheko-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.cpp3
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);
     }