mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
media: unref pipeline in finalize to avoid leaking it
This commit is contained in:
parent
d43a31055e
commit
fe71114a7d
2 changed files with 3 additions and 2 deletions
|
@ -171,6 +171,8 @@ gst_rtsp_media_finalize (GObject * obj)
|
|||
|
||||
g_list_free_full (media->dynamic, gst_object_unref);
|
||||
|
||||
if (media->pipeline)
|
||||
gst_object_unref (media->pipeline);
|
||||
if (media->auth)
|
||||
g_object_unref (media->auth);
|
||||
if (media->pool)
|
||||
|
@ -666,7 +668,6 @@ gst_rtsp_media_collect_streams (GstRTSPMedia * media)
|
|||
/* create the stream */
|
||||
gst_rtsp_media_create_stream (media, elem, pad);
|
||||
gst_object_unref (pad);
|
||||
|
||||
gst_object_unref (elem);
|
||||
|
||||
have_elem = TRUE;
|
||||
|
|
|
@ -76,7 +76,7 @@ typedef enum {
|
|||
* @buffer_size: The UDP buffer size
|
||||
* @auth: the authentication service in use
|
||||
* @multicast_group: the multicast group to use
|
||||
* @element: the data providing element
|
||||
* @element: the data providing element, owned by @pipeline
|
||||
* @streams: the different #GstRTSPStream provided by @element
|
||||
* @dynamic: list of dynamic elements managed by @element
|
||||
* @status: the status of the media pipeline
|
||||
|
|
Loading…
Reference in a new issue