summaryrefslogtreecommitdiff
path: root/gst-plugin/src/gstplugin.c
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2008-08-11 14:51:39 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2008-08-11 14:51:39 +0000
commit09f9a894c43c34c75db831ce42060ceafee5d588 (patch)
treeda9ef6a86bcb19d54e57f5fdc2f0a88bef41c852 /gst-plugin/src/gstplugin.c
parent2046a46c15951da0005f3508cfaf3f5001fb598e (diff)
Integrate new template and improve search'n'replace ops. Update templates to use current API.
Original commit message from CVS: * README: * src/gstaudiofilter.c: * src/gstplugin.c: * src/gsttransform.c: * tools/make_element: Integrate new template and improve search'n'replace ops. Update templates to use current API.
Diffstat (limited to 'gst-plugin/src/gstplugin.c')
-rw-r--r--gst-plugin/src/gstplugin.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/gst-plugin/src/gstplugin.c b/gst-plugin/src/gstplugin.c
index 2a8b23a..443890a 100644
--- a/gst-plugin/src/gstplugin.c
+++ b/gst-plugin/src/gstplugin.c
@@ -46,13 +46,13 @@
/**
* SECTION:element-plugin
*
+ * FIXME:Describe plugin here.
+ *
* <refsect2>
* <title>Example launch line</title>
- * <para>
- * <programlisting>
- * gst-launch -v -m audiotestsrc ! plugin ! fakesink silent=TRUE
- * </programlisting>
- * </para>
+ * |[
+ * gst-launch -v -m fakesrc ! plugin ! fakesink silent=TRUE
+ * ]|
* </refsect2>
*/
@@ -112,19 +112,18 @@ static GstFlowReturn gst_plugin_template_chain (GstPad * pad, GstBuffer * buf);
static void
gst_plugin_template_base_init (gpointer gclass)
{
- static GstElementDetails element_details = {
- "PluginTemplate",
- "Generic/PluginTemplate",
- "Generic Template Element",
- "AUTHOR_NAME AUTHOR_EMAIL"
- };
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
+ gst_element_class_set_details_simple(element_class,
+ "Plugin",
+ "FIXME:Generic",
+ "FIXME:Generic Template Element",
+ "AUTHOR_NAME AUTHOR_EMAIL");
+
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
- gst_element_class_set_details (element_class, &element_details);
}
/* initialize the plugin's class */
@@ -154,8 +153,6 @@ static void
gst_plugin_template_init (GstPluginTemplate * filter,
GstPluginTemplateClass * gclass)
{
- GstElementClass *klass = GST_ELEMENT_GET_CLASS (filter);
-
filter->sinkpad = gst_pad_new_from_static_template (&sink_factory, "sink");
gst_pad_set_setcaps_function (filter->sinkpad,
GST_DEBUG_FUNCPTR(gst_plugin_template_set_caps));