mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
element-maker: remove sinkpad/srcpad fields
Information is in the base class anyway, plus pad creation was done incorrectly.
This commit is contained in:
parent
db40edff17
commit
9e7db27966
7 changed files with 1 additions and 26 deletions
|
@ -1,7 +1,6 @@
|
||||||
/* vim: set filetype=c: */
|
/* vim: set filetype=c: */
|
||||||
|
|
||||||
% instance-members
|
% instance-members
|
||||||
GstPad *sinkpad;
|
|
||||||
% prototypes
|
% prototypes
|
||||||
% pad-template
|
% pad-template
|
||||||
/* FIXME add/remove the formats that you want to support */
|
/* FIXME add/remove the formats that you want to support */
|
||||||
|
@ -17,10 +16,6 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
||||||
gst_static_pad_template_get (&gst_replace_sink_template));
|
gst_static_pad_template_get (&gst_replace_sink_template));
|
||||||
% instance-init
|
% instance-init
|
||||||
|
|
||||||
replace->sinkpad = gst_pad_new_from_static_template (&gst_replace_sink_template
|
|
||||||
,
|
|
||||||
"sink");
|
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* vim: set filetype=c: */
|
/* vim: set filetype=c: */
|
||||||
|
|
||||||
% instance-members
|
% instance-members
|
||||||
GstPad *sinkpad;
|
|
||||||
% prototypes
|
% prototypes
|
||||||
% pad-template
|
% pad-template
|
||||||
static GstStaticPadTemplate gst_replace_sink_template =
|
static GstStaticPadTemplate gst_replace_sink_template =
|
||||||
|
@ -15,10 +14,6 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
||||||
gst_static_pad_template_get (&gst_replace_sink_template));
|
gst_static_pad_template_get (&gst_replace_sink_template));
|
||||||
% instance-init
|
% instance-init
|
||||||
|
|
||||||
replace->sinkpad = gst_pad_new_from_static_template (&gst_replace_sink_template
|
|
||||||
,
|
|
||||||
"sink");
|
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* vim: set filetype=c: */
|
/* vim: set filetype=c: */
|
||||||
|
|
||||||
% instance-members
|
% instance-members
|
||||||
GstPad *sinkpad;
|
|
||||||
% prototypes
|
% prototypes
|
||||||
% pad-template
|
% pad-template
|
||||||
/* FIXME: add/remove formats you can handle */
|
/* FIXME: add/remove formats you can handle */
|
||||||
|
@ -19,8 +18,6 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
||||||
gst_static_pad_template_get (&gst_replace_sink_template));
|
gst_static_pad_template_get (&gst_replace_sink_template));
|
||||||
% instance-init
|
% instance-init
|
||||||
replace->sinkpad = gst_pad_new_from_static_template (
|
|
||||||
&gst_replace_sink_template, "sink");
|
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* vim: set filetype=c: */
|
/* vim: set filetype=c: */
|
||||||
|
|
||||||
% instance-members
|
% instance-members
|
||||||
GstPad *srcpad;
|
|
||||||
% prototypes
|
% prototypes
|
||||||
% pad-template
|
% pad-template
|
||||||
/* FIXME add/remove the formats that you want to support */
|
/* FIXME add/remove the formats that you want to support */
|
||||||
|
@ -17,10 +16,6 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
||||||
gst_static_pad_template_get (&gst_replace_src_template));
|
gst_static_pad_template_get (&gst_replace_src_template));
|
||||||
% instance-init
|
% instance-init
|
||||||
|
|
||||||
replace->srcpad = gst_pad_new_from_static_template (&gst_replace_src_template
|
|
||||||
,
|
|
||||||
"src");
|
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* vim: set filetype=c: */
|
/* vim: set filetype=c: */
|
||||||
|
|
||||||
% instance-members
|
% instance-members
|
||||||
GstPad *srcpad;
|
|
||||||
% prototypes
|
% prototypes
|
||||||
% pad-template
|
% pad-template
|
||||||
static GstStaticPadTemplate gst_replace_src_template =
|
static GstStaticPadTemplate gst_replace_src_template =
|
||||||
|
@ -15,10 +14,6 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
||||||
gst_static_pad_template_get (&gst_replace_src_template));
|
gst_static_pad_template_get (&gst_replace_src_template));
|
||||||
% instance-init
|
% instance-init
|
||||||
|
|
||||||
replace->srcpad = gst_pad_new_from_static_template (&gst_replace_src_template
|
|
||||||
,
|
|
||||||
"src");
|
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* vim: set filetype=c: */
|
/* vim: set filetype=c: */
|
||||||
|
|
||||||
% instance-members
|
% instance-members
|
||||||
GstPad *srcpad;
|
|
||||||
% prototypes
|
% prototypes
|
||||||
% pad-template
|
% pad-template
|
||||||
/* FIXME: add/remove formats you can handle */
|
/* FIXME: add/remove formats you can handle */
|
||||||
|
@ -19,8 +18,6 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
|
||||||
gst_static_pad_template_get (&gst_replace_src_template));
|
gst_static_pad_template_get (&gst_replace_src_template));
|
||||||
% instance-init
|
% instance-init
|
||||||
replace->srcpad = gst_pad_new_from_static_template (
|
|
||||||
&gst_replace_src_template, "src");
|
|
||||||
% instance-init
|
% instance-init
|
||||||
% methods
|
% methods
|
||||||
% end
|
% end
|
||||||
|
|
|
@ -387,3 +387,4 @@ if test $? -ne 0; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
gst-inspect-1.0 ./$gstreplace.so
|
||||||
|
|
Loading…
Reference in a new issue