mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 05:22:30 +00:00
gst-element-maker: add {src,sink}pad-template, since many base classes create pads for us
And use them in the videofilter template.
This commit is contained in:
parent
e504dc3f6b
commit
48398114e6
3 changed files with 39 additions and 1 deletions
19
tools/element-templates/sinkpad-template
Normal file
19
tools/element-templates/sinkpad-template
Normal file
|
@ -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
|
||||
|
19
tools/element-templates/srcpad-template
Normal file
19
tools/element-templates/srcpad-template
Normal file
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue