diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-03-17 15:49:45 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-03-17 15:49:45 +0000 |
commit | 48398114e672e7900faf239c2fe5ae6f343fa9e0 (patch) | |
tree | 60f29c23a1266611bb20154743b118fc680db355 /tools | |
parent | e504dc3f6b13c00f1b1db9b97bd42ba0449bfb92 (diff) | |
download | gstreamer-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')
-rw-r--r-- | tools/element-templates/sinkpad-template | 19 | ||||
-rw-r--r-- | tools/element-templates/srcpad-template | 19 | ||||
-rw-r--r-- | tools/element-templates/videofilter | 2 |
3 files changed, 39 insertions, 1 deletions
diff --git a/tools/element-templates/sinkpad-template b/tools/element-templates/sinkpad-template new file mode 100644 index 000000000..b06b346b1 --- /dev/null +++ b/tools/element-templates/sinkpad-template @@ -0,0 +1,19 @@ +/* vim: set filetype=c: */ + +% instance-members +% prototypes +% pad-template +static GstStaticPadTemplate gst_replace_sink_template = +GST_STATIC_PAD_TEMPLATE ("sink", + GST_PAD_SINK, + GST_PAD_ALWAYS, + GST_STATIC_CAPS ("application/unknown") + ); + +% base-init + gst_element_class_add_static_pad_template (element_class, + &gst_replace_sink_template); +% instance-init +% methods +% end + 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 + diff --git a/tools/element-templates/videofilter b/tools/element-templates/videofilter index fb22b2884..65b2f3756 100644 --- a/tools/element-templates/videofilter +++ b/tools/element-templates/videofilter @@ -4,7 +4,7 @@ GstVideoFilter % TYPE_CLASS_NAME GST_TYPE_VIDEO_FILTER % pads -sinkpad-simple srcpad-simple +sinkpad-template srcpad-template % pkg-config gstreamer-video-0.10 % includes |