mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
sendonly: Fix transceivers leak.
Make sure to unref the transceivers array after use.
This commit is contained in:
parent
7445fc4928
commit
8da8375986
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ create_receiver_entry (SoupWebsocketConnection * connection)
|
||||||
g_assert (transceivers != NULL && transceivers->len > 0);
|
g_assert (transceivers != NULL && transceivers->len > 0);
|
||||||
trans = g_array_index (transceivers, GstWebRTCRTPTransceiver *, 0);
|
trans = g_array_index (transceivers, GstWebRTCRTPTransceiver *, 0);
|
||||||
trans->direction = GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY;
|
trans->direction = GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY;
|
||||||
|
g_array_unref (transceivers);
|
||||||
|
|
||||||
g_signal_connect (receiver_entry->webrtcbin, "on-negotiation-needed",
|
g_signal_connect (receiver_entry->webrtcbin, "on-negotiation-needed",
|
||||||
G_CALLBACK (on_negotiation_needed_cb), (gpointer) receiver_entry);
|
G_CALLBACK (on_negotiation_needed_cb), (gpointer) receiver_entry);
|
||||||
|
|
Loading…
Reference in a new issue