summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2013-03-19 17:28:16 -0700
committerDavid Schleef <ds@schleef.org>2013-03-19 17:28:16 -0700
commit9e7db279666cd9a6de0ab587b84b5bc4e6cb5dec (patch)
treeb8f8395c09a854c0bcbcc851f3c23e6cac5c3f02 /tools
parentdb40edff174e405f50919d9ed4023772e603d729 (diff)
downloadgstreamer-plugins-bad-9e7db279666cd9a6de0ab587b84b5bc4e6cb5dec.tar.gz
element-maker: remove sinkpad/srcpad fields
Information is in the base class anyway, plus pad creation was done incorrectly.
Diffstat (limited to 'tools')
-rw-r--r--tools/element-templates/sinkpad-audio5
-rw-r--r--tools/element-templates/sinkpad-simple5
-rw-r--r--tools/element-templates/sinkpad-template-video3
-rw-r--r--tools/element-templates/srcpad-audio5
-rw-r--r--tools/element-templates/srcpad-simple5
-rw-r--r--tools/element-templates/srcpad-template-video3
-rwxr-xr-xtools/gst-element-maker1
7 files changed, 1 insertions, 26 deletions
diff --git a/tools/element-templates/sinkpad-audio b/tools/element-templates/sinkpad-audio
index 38fe1e6ec..3af507272 100644
--- a/tools/element-templates/sinkpad-audio
+++ b/tools/element-templates/sinkpad-audio
@@ -1,7 +1,6 @@
/* vim: set filetype=c: */
% instance-members
- GstPad *sinkpad;
% prototypes
% pad-template
/* 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_static_pad_template_get (&gst_replace_sink_template));
% instance-init
-
- replace->sinkpad = gst_pad_new_from_static_template (&gst_replace_sink_template
- ,
- "sink");
% methods
% end
diff --git a/tools/element-templates/sinkpad-simple b/tools/element-templates/sinkpad-simple
index e6cd684be..2500e3f63 100644
--- a/tools/element-templates/sinkpad-simple
+++ b/tools/element-templates/sinkpad-simple
@@ -1,7 +1,6 @@
/* vim: set filetype=c: */
% instance-members
- GstPad *sinkpad;
% prototypes
% pad-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_static_pad_template_get (&gst_replace_sink_template));
% instance-init
-
- replace->sinkpad = gst_pad_new_from_static_template (&gst_replace_sink_template
- ,
- "sink");
% methods
% end
diff --git a/tools/element-templates/sinkpad-template-video b/tools/element-templates/sinkpad-template-video
index b11965d16..286396a46 100644
--- a/tools/element-templates/sinkpad-template-video
+++ b/tools/element-templates/sinkpad-template-video
@@ -1,7 +1,6 @@
/* vim: set filetype=c: */
% instance-members
- GstPad *sinkpad;
% prototypes
% pad-template
/* 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_static_pad_template_get (&gst_replace_sink_template));
% instance-init
- replace->sinkpad = gst_pad_new_from_static_template (
- &gst_replace_sink_template, "sink");
% methods
% end
diff --git a/tools/element-templates/srcpad-audio b/tools/element-templates/srcpad-audio
index da0207fd5..047c7c7a4 100644
--- a/tools/element-templates/srcpad-audio
+++ b/tools/element-templates/srcpad-audio
@@ -1,7 +1,6 @@
/* vim: set filetype=c: */
% instance-members
- GstPad *srcpad;
% prototypes
% pad-template
/* 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_static_pad_template_get (&gst_replace_src_template));
% instance-init
-
- replace->srcpad = gst_pad_new_from_static_template (&gst_replace_src_template
- ,
- "src");
% methods
% end
diff --git a/tools/element-templates/srcpad-simple b/tools/element-templates/srcpad-simple
index 732dc5da2..5971809b6 100644
--- a/tools/element-templates/srcpad-simple
+++ b/tools/element-templates/srcpad-simple
@@ -1,7 +1,6 @@
/* vim: set filetype=c: */
% instance-members
- GstPad *srcpad;
% prototypes
% pad-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_static_pad_template_get (&gst_replace_src_template));
% instance-init
-
- replace->srcpad = gst_pad_new_from_static_template (&gst_replace_src_template
- ,
- "src");
% methods
% end
diff --git a/tools/element-templates/srcpad-template-video b/tools/element-templates/srcpad-template-video
index 6e233dfe1..bee70859f 100644
--- a/tools/element-templates/srcpad-template-video
+++ b/tools/element-templates/srcpad-template-video
@@ -1,7 +1,6 @@
/* vim: set filetype=c: */
% instance-members
- GstPad *srcpad;
% prototypes
% pad-template
/* 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_static_pad_template_get (&gst_replace_src_template));
% instance-init
- replace->srcpad = gst_pad_new_from_static_template (
- &gst_replace_src_template, "src");
% instance-init
% methods
% end
diff --git a/tools/gst-element-maker b/tools/gst-element-maker
index 18788f69e..8a9b29ef1 100755
--- a/tools/gst-element-maker
+++ b/tools/gst-element-maker
@@ -387,3 +387,4 @@ if test $? -ne 0; then
exit 1
fi
+gst-inspect-1.0 ./$gstreplace.so