summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2008-12-12 10:54:45 +0000
committerEdward Hervey <bilboed@bilboed.com>2008-12-12 10:54:45 +0000
commit89413e390ca14bb14b834449b5bb08487aa47e9b (patch)
tree2333e8f8240d7e1bb7a74a4a3838ea91c62242eb /sys
parenta3c1a0507aa0ef8f4d83ac0783418d3d130b8894 (diff)
gst/playback/gsturidecodebin.c: Free the factory array when finalizing.
Original commit message from CVS: * gst/playback/gsturidecodebin.c: (gst_uri_decode_bin_finalize): Free the factory array when finalizing. * sys/v4l/gstv4lsrc.c: (gst_v4lsrc_base_init): Use a GstStaticPadTemplate since the src pad caps are fixed.
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l/gstv4lsrc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/v4l/gstv4lsrc.c b/sys/v4l/gstv4lsrc.c
index 2c190090..0bba38bb 100644
--- a/sys/v4l/gstv4lsrc.c
+++ b/sys/v4l/gstv4lsrc.c
@@ -53,6 +53,11 @@ enum
GST_BOILERPLATE (GstV4lSrc, gst_v4lsrc, GstV4lElement, GST_TYPE_V4LELEMENT);
+static GstStaticPadTemplate v4l_src_template = GST_STATIC_PAD_TEMPLATE ("src",
+ GST_PAD_SRC,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("ANY")
+ );
/* basesrc methods */
static gboolean gst_v4lsrc_start (GstBaseSrc * src);
@@ -77,8 +82,7 @@ gst_v4lsrc_base_init (gpointer g_class)
gst_element_class_set_details (gstelement_class, &gst_v4lsrc_details);
gst_element_class_add_pad_template (gstelement_class,
- gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
- gst_caps_new_any ()));
+ gst_static_pad_template_get (&v4l_src_template));
}
static void