Commit d43a3105 authored by Wim Taymans's avatar Wim Taymans

rtsp: use gst_object_unref on GstObjects

parent 6b362418
......@@ -580,7 +580,7 @@ rtsp_media_factory_uri_create_element (GstRTSPMediaFactory * factory,
g_critical ("can't create uridecodebin element");
g_object_unref (element);
gst_object_unref (element);
return NULL;
......@@ -665,7 +665,7 @@ gst_rtsp_media_collect_streams (GstRTSPMedia * media)
pad = gst_element_get_static_pad (elem, "src");
/* create the stream */
gst_rtsp_media_create_stream (media, elem, pad);
g_object_unref (pad);
gst_object_unref (pad);
gst_object_unref (elem);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment