summaryrefslogtreecommitdiff
path: root/gst/faceoverlay
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-03-15 15:47:24 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-03-15 15:48:53 +0000
commitfead44ad128ddbb054d108ce9489233a04069d65 (patch)
tree4880d2b618fde05ea3b17f6e30e91742e1091cb3 /gst/faceoverlay
parent25cc93139de8a21ac3fbf092242393e52db4b57a (diff)
downloadgstreamer-plugins-bad-fead44ad128ddbb054d108ce9489233a04069d65.tar.gz
faceoverlay: minor cosmetic changes
Remove template maker comments, use our defines for package name and origin.
Diffstat (limited to 'gst/faceoverlay')
-rw-r--r--gst/faceoverlay/gstfaceoverlay.c42
1 files changed, 2 insertions, 40 deletions
diff --git a/gst/faceoverlay/gstfaceoverlay.c b/gst/faceoverlay/gstfaceoverlay.c
index 209f656b4..1140f1c84 100644
--- a/gst/faceoverlay/gstfaceoverlay.c
+++ b/gst/faceoverlay/gstfaceoverlay.c
@@ -1,5 +1,4 @@
-/*
- * GStreamer faceoverlay plugin
+/* GStreamer faceoverlay plugin
* Copyright (C) 2011 Laura Lucas Alday <lauralucas@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -76,13 +75,6 @@ GST_DEBUG_CATEGORY_STATIC (gst_face_overlay_debug);
#define GST_STR_VIDEO_CAPS GST_VIDEO_CAPS_ARGB
#endif
-/* Filter signals and args */
-enum
-{
- /* FILL ME */
- LAST_SIGNAL
-};
-
enum
{
PROP_0,
@@ -319,9 +311,6 @@ gst_face_overlay_message_handler (GstBin * bin, GstMessage * message)
GST_BIN_CLASS (parent_class)->handle_message (bin, message);
}
-/* GObject vmethod implementations */
-/* the _base_init() function is meant to initialize class and child class
- * properties during each new child class creation */
static void
gst_face_overlay_base_init (gpointer gclass)
{
@@ -337,10 +326,6 @@ gst_face_overlay_base_init (gpointer gclass)
gst_element_class_add_static_pad_template (element_class, &sink_factory);
}
-/* initialize the faceoverlay's class */
-/* the _class_init() function is used to initialise the class only once
- * (specifying what signals, arguments and virtual functions the class has and
- * setting up global state) */
static void
gst_face_overlay_class_init (GstFaceOverlayClass * klass)
{
@@ -380,15 +365,8 @@ gst_face_overlay_class_init (GstFaceOverlayClass * klass)
GST_DEBUG_FUNCPTR (gst_face_overlay_message_handler);
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_face_overlay_change_state);
-
}
-/* initialize the new element
- * instantiate pads and add them to element
- * set pad calback functions
- * initialize instance structure
- * the _init() function is used to initialise a specific instance of this type.
- */
static void
gst_face_overlay_init (GstFaceOverlay * filter, GstFaceOverlayClass * gclass)
{
@@ -407,7 +385,6 @@ gst_face_overlay_init (GstFaceOverlay * filter, GstFaceOverlayClass * gclass)
filter->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
-
}
static void
@@ -466,14 +443,9 @@ gst_face_overlay_get_property (GObject * object, guint prop_id,
}
}
-/* entry point to initialize the plug-in
- * initialize the plug-in itself
- * register the element factories and other features
- */
static gboolean
faceoverlay_init (GstPlugin * faceoverlay)
{
- /* debug category for fltering log messages */
GST_DEBUG_CATEGORY_INIT (gst_face_overlay_debug, "faceoverlay",
0, "SVG Face Overlay");
@@ -481,18 +453,8 @@ faceoverlay_init (GstPlugin * faceoverlay)
GST_TYPE_FACEOVERLAY);
}
-/* PACKAGE: this is usually set by autotools depending on some _INIT macro
- * in configure.ac and then written into and defined in config.h, but we can
- * just set it ourselves here in case someone doesn't use autotools to
- * compile this code. GST_PLUGIN_DEFINE needs PACKAGE to be defined.
- */
-#ifndef PACKAGE
-#define PACKAGE "faceoverlay"
-#endif
-
-/* gstreamer looks for this structure to register plugins */
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"faceoverlay",
"SVG Face Overlay",
- faceoverlay_init, VERSION, "LGPL", "GStreamer", "http://gstreamer.net/")
+ faceoverlay_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)