media: unref pipeline in finalize to avoid leaking it

This commit is contained in:
Wim Taymans 2012-11-28 12:39:37 +01:00
parent d43a31055e
commit fe71114a7d
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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