camerabin2: do not unref pad template
authorTeemu Katajisto <teemu.katajisto@digia.com>
Mon, 23 May 2011 10:36:27 +0000 (13:36 +0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 2 Jun 2011 19:24:03 +0000 (16:24 -0300)
gst/camerabin2/gstcamerabin2.c

index 0c8c4da..76daf9e 100644 (file)
@@ -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;