element-maker: remove sinkpad/srcpad fields
authorDavid Schleef <ds@schleef.org>
Wed, 20 Mar 2013 00:28:16 +0000 (17:28 -0700)
committerDavid Schleef <ds@schleef.org>
Wed, 20 Mar 2013 00:28:16 +0000 (17:28 -0700)
Information is in the base class anyway, plus pad creation was
done incorrectly.

tools/element-templates/sinkpad-audio
tools/element-templates/sinkpad-simple
tools/element-templates/sinkpad-template-video
tools/element-templates/srcpad-audio
tools/element-templates/srcpad-simple
tools/element-templates/srcpad-template-video
tools/gst-element-maker

index 38fe1e6..3af5072 100644 (file)
@@ -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
 
index e6cd684..2500e3f 100644 (file)
@@ -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
 
index b11965d..286396a 100644 (file)
@@ -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
 
index da0207f..047c7c7 100644 (file)
@@ -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
 
index 732dc5d..5971809 100644 (file)
@@ -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
 
index 6e233df..bee7085 100644 (file)
@@ -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
index 18788f6..8a9b29e 100755 (executable)
@@ -387,3 +387,4 @@ if test $? -ne 0; then
     exit 1
 fi
 
+gst-inspect-1.0 ./$gstreplace.so