From d43a31055e145354fa24a289c9b8648613bc407c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 28 Nov 2012 12:10:47 +0100 Subject: [PATCH] rtsp: use gst_object_unref on GstObjects --- gst/rtsp-server/rtsp-media-factory-uri.c | 2 +- gst/rtsp-server/rtsp-media.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtsp-server/rtsp-media-factory-uri.c b/gst/rtsp-server/rtsp-media-factory-uri.c index 538338d..cd262b3 100644 --- a/gst/rtsp-server/rtsp-media-factory-uri.c +++ b/gst/rtsp-server/rtsp-media-factory-uri.c @@ -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; } } diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 9004b01..e5abb0e 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -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); -- 2.7.4