mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +03:00
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:
parent
c0b2e8f9b7
commit
b439e1fa41
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue