summaryrefslogtreecommitdiff
path: root/tools/element-templates/srcpad-template
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-03-17 15:49:45 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-03-17 15:49:45 +0000
commit48398114e672e7900faf239c2fe5ae6f343fa9e0 (patch)
tree60f29c23a1266611bb20154743b118fc680db355 /tools/element-templates/srcpad-template
parente504dc3f6b13c00f1b1db9b97bd42ba0449bfb92 (diff)
downloadgstreamer-plugins-bad-48398114e672e7900faf239c2fe5ae6f343fa9e0.tar.gz
gst-element-maker: add {src,sink}pad-template, since many base classes create pads for us
And use them in the videofilter template.
Diffstat (limited to 'tools/element-templates/srcpad-template')
-rw-r--r--tools/element-templates/srcpad-template19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/element-templates/srcpad-template b/tools/element-templates/srcpad-template
new file mode 100644
index 000000000..dd0842bbd
--- /dev/null
+++ b/tools/element-templates/srcpad-template
@@ -0,0 +1,19 @@
+/* vim: set filetype=c: */
+
+% instance-members
+% prototypes
+% pad-template
+static GstStaticPadTemplate gst_replace_src_template =
+GST_STATIC_PAD_TEMPLATE ("src",
+ GST_PAD_SRC,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/unknown")
+ );
+
+% base-init
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_replace_src_template);
+% instance-init
+% methods
+% end
+