camerabin2: do not unref pad template

This commit is contained in:
Teemu Katajisto 2011-05-23 13:36:27 +03:00 committed by Thiago Santos
parent e6550ca982
commit 2a6d25659a

View 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;