From: Teemu Katajisto Date: Mon, 23 May 2011 10:36:27 +0000 (+0300) Subject: camerabin2: do not unref pad template X-Git-Tag: 1.19.3~507^2~16050^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a6d25659a28011f4af7796b3f60d821addcb21d;p=platform%2Fupstream%2Fgstreamer.git camerabin2: do not unref pad template --- diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index 0c8c4da..76daf9e 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -897,7 +897,6 @@ encodebin_find_pad (GstCameraBin * camera, GstElement * encodebin, pad = gst_element_request_pad (encodebin, tmpl, NULL, NULL); GST_DEBUG_OBJECT (camera, "Got pad: %s", pad ? GST_PAD_NAME (pad) : "null"); - gst_object_unref (tmpl); } return pad;