rtsp: use gst_object_unref on GstObjects

This commit is contained in:
Wim Taymans 2012-11-28 12:10:47 +01:00
parent 6b36241816
commit d43a31055e
2 changed files with 2 additions and 2 deletions

View file

@ -580,7 +580,7 @@ rtsp_media_factory_uri_create_element (GstRTSPMediaFactory * factory,
no_uridecodebin: no_uridecodebin:
{ {
g_critical ("can't create uridecodebin element"); g_critical ("can't create uridecodebin element");
g_object_unref (element); gst_object_unref (element);
return NULL; return NULL;
} }
} }

View file

@ -665,7 +665,7 @@ gst_rtsp_media_collect_streams (GstRTSPMedia * media)
pad = gst_element_get_static_pad (elem, "src"); pad = gst_element_get_static_pad (elem, "src");
/* create the stream */ /* create the stream */
gst_rtsp_media_create_stream (media, elem, pad); gst_rtsp_media_create_stream (media, elem, pad);
g_object_unref (pad); gst_object_unref (pad);
gst_object_unref (elem); gst_object_unref (elem);