rtsp: use gst_object_unref on GstObjects
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 28 Nov 2012 11:10:47 +0000 (12:10 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 28 Nov 2012 11:10:47 +0000 (12:10 +0100)
gst/rtsp-server/rtsp-media-factory-uri.c
gst/rtsp-server/rtsp-media.c

index 538338dfc003177b99300b498c883dfac769cf14..cd262b3658828f1fd7221f20d198bc0609309bb4 100644 (file)
@@ -580,7 +580,7 @@ rtsp_media_factory_uri_create_element (GstRTSPMediaFactory * factory,
 no_uridecodebin:
   {
     g_critical ("can't create uridecodebin element");
-    g_object_unref (element);
+    gst_object_unref (element);
     return NULL;
   }
 }
index 9004b0115f23c1c9231caa087d876ffcb0eca530..e5abb0e4560aa15c2d212bfef92eae3c4e337ffc 100644 (file)
@@ -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);