From e9cba00c6af5e6791b2f7ab76308d63ac8dc5b56 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Thu, 10 May 2012 21:15:42 +0100 Subject: [PATCH] gaudieffects: consistency in templates name --- gst/gaudieffects/gstburn.c | 10 ++++++---- gst/gaudieffects/gstchromium.c | 10 ++++++---- gst/gaudieffects/gstdilate.c | 10 ++++++---- gst/gaudieffects/gstdodge.c | 10 ++++++---- gst/gaudieffects/gstexclusion.c | 10 ++++++---- gst/gaudieffects/gstgaussblur.c | 10 ++++++---- gst/gaudieffects/gstsolarize.c | 10 ++++++---- 7 files changed, 42 insertions(+), 28 deletions(-) diff --git a/gst/gaudieffects/gstburn.c b/gst/gaudieffects/gstburn.c index 8179d5d..fb982c6 100644 --- a/gst/gaudieffects/gstburn.c +++ b/gst/gaudieffects/gstburn.c @@ -101,13 +101,15 @@ static void transform (guint32 * src, guint32 * dest, gint video_area, /* The capabilities of the inputs and outputs. */ -static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", +static GstStaticPadTemplate gst_burn_sink_template = +GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) ); -static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", +static GstStaticPadTemplate gst_burn_src_template = +GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) @@ -139,9 +141,9 @@ gst_burn_class_init (GstBurnClass * klass) "Luis de Bethencourt "); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_static_pad_template_get (&gst_burn_sink_template)); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_static_pad_template_get (&gst_burn_src_template)); gobject_class->set_property = gst_burn_set_property; gobject_class->get_property = gst_burn_get_property; diff --git a/gst/gaudieffects/gstchromium.c b/gst/gaudieffects/gstchromium.c index 795b422..68590ed 100644 --- a/gst/gaudieffects/gstchromium.c +++ b/gst/gaudieffects/gstchromium.c @@ -116,13 +116,15 @@ static void transform (guint32 * src, guint32 * dest, gint video_area, /* The capabilities of the inputs and outputs. */ -static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", +static GstStaticPadTemplate gst_chromium_sink_template = +GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) ); -static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", +static GstStaticPadTemplate gst_chromium_src_template = +GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) @@ -153,9 +155,9 @@ gst_chromium_class_init (GstChromiumClass * klass) "Luis de Bethencourt "); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_static_pad_template_get (&gst_chromium_sink_template)); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_static_pad_template_get (&gst_chromium_src_template)); gobject_class->set_property = gst_chromium_set_property; gobject_class->get_property = gst_chromium_get_property; diff --git a/gst/gaudieffects/gstdilate.c b/gst/gaudieffects/gstdilate.c index 660b2d1..51602d5 100644 --- a/gst/gaudieffects/gstdilate.c +++ b/gst/gaudieffects/gstdilate.c @@ -102,13 +102,15 @@ static inline guint32 get_luminance (guint32 in); /* The capabilities of the inputs and outputs. */ -static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", +static GstStaticPadTemplate gst_dilate_sink_template = +GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) ); -static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", +static GstStaticPadTemplate gst_dilate_src_template = +GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) @@ -140,9 +142,9 @@ gst_dilate_class_init (GstDilateClass * klass) "Luis de Bethencourt "); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_static_pad_template_get (&gst_dilate_sink_template)); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_static_pad_template_get (&gst_dilate_src_template)); gobject_class->set_property = gst_dilate_set_property; gobject_class->get_property = gst_dilate_get_property; diff --git a/gst/gaudieffects/gstdodge.c b/gst/gaudieffects/gstdodge.c index a9bdf4c..41cac51 100644 --- a/gst/gaudieffects/gstdodge.c +++ b/gst/gaudieffects/gstdodge.c @@ -98,13 +98,15 @@ static void transform (guint32 * src, guint32 * dest, gint video_area); /* The capabilities of the inputs and outputs. */ -static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", +static GstStaticPadTemplate gst_dodge_sink_template = +GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) ); -static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", +static GstStaticPadTemplate gst_dodge_src_template = +GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) @@ -136,9 +138,9 @@ gst_dodge_class_init (GstDodgeClass * klass) "Luis de Bethencourt "); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_static_pad_template_get (&gst_dodge_sink_template)); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_static_pad_template_get (&gst_dodge_src_template)); gobject_class->set_property = gst_dodge_set_property; gobject_class->get_property = gst_dodge_get_property; diff --git a/gst/gaudieffects/gstexclusion.c b/gst/gaudieffects/gstexclusion.c index 87119e2..b5ac8065 100644 --- a/gst/gaudieffects/gstexclusion.c +++ b/gst/gaudieffects/gstexclusion.c @@ -101,13 +101,15 @@ static void transform (guint32 * src, guint32 * dest, gint video_area, /* The capabilities of the inputs and outputs. */ -static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", +static GstStaticPadTemplate gst_exclusion_sink_template = +GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) ); -static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", +static GstStaticPadTemplate gst_exclusion_src_template = +GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) @@ -141,9 +143,9 @@ gst_exclusion_class_init (GstExclusionClass * klass) "Luis de Bethencourt "); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_static_pad_template_get (&gst_exclusion_sink_template)); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_static_pad_template_get (&gst_exclusion_src_template)); gobject_class->set_property = gst_exclusion_set_property; gobject_class->get_property = gst_exclusion_get_property; diff --git a/gst/gaudieffects/gstgaussblur.c b/gst/gaudieffects/gstgaussblur.c index 5c7ad60..b53da3a 100644 --- a/gst/gaudieffects/gstgaussblur.c +++ b/gst/gaudieffects/gstgaussblur.c @@ -94,13 +94,15 @@ GST_DEBUG_CATEGORY_STATIC (gst_gauss_blur_debug); #define CAPS_STR GST_VIDEO_CAPS_MAKE ("AYUV") /* The capabilities of the inputs and outputs. */ -static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", +static GstStaticPadTemplate gst_gaussianblur_sink_template = +GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) ); -static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", +static GstStaticPadTemplate gst_gaussianblur_src_template = +GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) @@ -137,9 +139,9 @@ gst_gaussianblur_class_init (GstGaussianBlurClass * klass) "Jan Schmidt "); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_static_pad_template_get (&gst_gaussianblur_sink_template)); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_static_pad_template_get (&gst_gaussianblur_src_template)); gobject_class->set_property = gst_gaussianblur_set_property; gobject_class->get_property = gst_gaussianblur_get_property; diff --git a/gst/gaudieffects/gstsolarize.c b/gst/gaudieffects/gstsolarize.c index 6d6cf47..087e0a7 100644 --- a/gst/gaudieffects/gstsolarize.c +++ b/gst/gaudieffects/gstsolarize.c @@ -103,13 +103,15 @@ static void transform (guint32 * src, guint32 * dest, gint video_area, /* The capabilities of the inputs and outputs. */ -static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink", +static GstStaticPadTemplate gst_solarize_sink_template = +GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) ); -static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", +static GstStaticPadTemplate gst_solarize_src_template = +GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (CAPS_STR) @@ -144,9 +146,9 @@ gst_solarize_class_init (GstSolarizeClass * klass) "Luis de Bethencourt "); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_static_pad_template_get (&gst_solarize_sink_template)); gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_static_pad_template_get (&gst_solarize_src_template)); gobject_class->set_property = gst_solarize_set_property; gobject_class->get_property = gst_solarize_get_property; -- 2.7.4