mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
examples/webrtc: add some missing unrefs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2958>
This commit is contained in:
parent
8b988605a8
commit
eab9383812
1 changed files with 5 additions and 0 deletions
|
@ -282,6 +282,7 @@ on_offer_created (GstPromise * promise, const gchar * peer_id)
|
||||||
/* Send offer to peer */
|
/* Send offer to peer */
|
||||||
send_room_peer_sdp (offer, peer_id);
|
send_room_peer_sdp (offer, peer_id);
|
||||||
gst_webrtc_session_description_free (offer);
|
gst_webrtc_session_description_free (offer);
|
||||||
|
gst_object_unref (webrtc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -388,6 +389,9 @@ add_peer_to_pipeline (const gchar * peer_id, gboolean offer)
|
||||||
g_assert_true (ret);
|
g_assert_true (ret);
|
||||||
ret = gst_element_sync_state_with_parent (webrtc);
|
ret = gst_element_sync_state_with_parent (webrtc);
|
||||||
g_assert_true (ret);
|
g_assert_true (ret);
|
||||||
|
|
||||||
|
gst_object_unref (q);
|
||||||
|
gst_object_unref (webrtc)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -606,6 +610,7 @@ on_answer_created (GstPromise * promise, const gchar * peer_id)
|
||||||
/* Send offer to peer */
|
/* Send offer to peer */
|
||||||
send_room_peer_sdp (answer, peer_id);
|
send_room_peer_sdp (answer, peer_id);
|
||||||
gst_webrtc_session_description_free (answer);
|
gst_webrtc_session_description_free (answer);
|
||||||
|
gst_object_unref (webrtc);
|
||||||
|
|
||||||
app_state = ROOM_CALL_STARTED;
|
app_state = ROOM_CALL_STARTED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue