Commit 3291b965 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

src/gstplugin.c: Fix function declaration of _init() function.

Original commit message from CVS:
* src/gstplugin.c: (gst_plugin_template_init),
(gst_plugin_template_chain):
Fix function declaration of  _init() function.
Remove unnecessary assertion clutter in chain function
(that also failed to return a flow value, causing
compiler warnings).
parent 54735816
common @ c09cd18d
Subproject commit 58567e5519f2d00a4592491db1a6e8302993279e
Subproject commit c09cd18d328f740ac532377fa5605b0f712cc6fd
2006-02-26 Tim-Philipp Müller <tim at centricular dot net>
* src/gstplugin.c: (gst_plugin_template_init),
(gst_plugin_template_chain):
Fix function declaration of _init() function.
Remove unnecessary assertion clutter in chain function
(that also failed to return a flow value, causing
compiler warnings).
2006-02-07 Stefan Kost <ensonic@users.sf.net>
* src/gstplugin.c: (gst_plugin_template_set_caps),
......
......@@ -92,7 +92,8 @@ GST_STATIC_PAD_TEMPLATE (
static void gst_plugin_template_class_init (GstPluginTemplateClass *klass);
static void gst_plugin_template_base_init (GstPluginTemplateClass *klass);
static void gst_plugin_template_init (GstPluginTemplate *filter);
static void gst_plugin_template_init (GstPluginTemplate *filter,
GstPluginTemplateClass *gclass);
static void gst_plugin_template_set_property (GObject *object, guint prop_id,
const GValue *value,
......@@ -176,7 +177,8 @@ gst_plugin_template_class_init (GstPluginTemplateClass *klass)
* initialize structure
*/
static void
gst_plugin_template_init (GstPluginTemplate *filter, GstPluginTemplateClass * klass)
gst_plugin_template_init (GstPluginTemplate *filter,
GstPluginTemplateClass * gclass)
{
GstElementClass *klass = GST_ELEMENT_GET_CLASS (filter);
......@@ -258,11 +260,7 @@ gst_plugin_template_chain (GstPad *pad, GstBuffer *buf)
{
GstPluginTemplate *filter;
g_return_if_fail (GST_IS_PAD (pad));
g_return_if_fail (buf != NULL);
filter = GST_PLUGIN_TEMPLATE (GST_OBJECT_PARENT (pad));
g_return_if_fail (GST_IS_PLUGIN_TEMPLATE (filter));
if (filter->silent == FALSE)
g_print ("I'm plugged, therefore I'm in.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment