diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2007-02-12 12:43:00 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2007-02-12 12:43:00 +0000 |
commit | 14d79a36f3ee209a9f660f0a96df977760dc4d0f (patch) | |
tree | f338cc90e02cfd4db45f1b05fdc2f962a720a08b /gst/goom | |
parent | 84c6815cf7dc6ecf427a508b3ca5e562440e40c3 (diff) |
gst/goom/gstgoom.*: Improved docs and use GST_DEBUG_FUNCPTR.
Original commit message from CVS:
* gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
Improved docs and use GST_DEBUG_FUNCPTR.
* gst/level/gstlevel.c: (gst_level_class_init):
Use GST_DEBUG_FUNCPTR.
* gst/monoscope/gstmonoscope.c: (gst_monoscope_init),
(gst_monoscope_chain), (gst_monoscope_change_state):
Improved docs source cleanups.
Diffstat (limited to 'gst/goom')
-rw-r--r-- | gst/goom/gstgoom.c | 22 | ||||
-rw-r--r-- | gst/goom/gstgoom.h | 8 |
2 files changed, 19 insertions, 11 deletions
diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c index 19b38c91..a52b1a86 100644 --- a/gst/goom/gstgoom.c +++ b/gst/goom/gstgoom.c @@ -23,6 +23,10 @@ * @see_also: synaesthesia * * <refsect2> + * <para> + * Goom is an audio visualisation element. It creates warping structures + * based on the incomming audio signal. + * </para> * <title>Example launch line</title> * <para> * <programlisting> @@ -148,7 +152,7 @@ gst_goom_class_init (GstGoomClass * klass) gobject_class->finalize = gst_goom_finalize; - gstelement_class->change_state = gst_goom_change_state; + gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_goom_change_state); GST_DEBUG_CATEGORY_INIT (goom_debug, "goom", 0, "goom visualisation element"); } @@ -158,14 +162,19 @@ gst_goom_init (GstGoom * goom) { /* create the sink and src pads */ goom->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); - gst_pad_set_chain_function (goom->sinkpad, gst_goom_chain); - gst_pad_set_event_function (goom->sinkpad, gst_goom_sink_event); - gst_pad_set_setcaps_function (goom->sinkpad, gst_goom_sink_setcaps); + gst_pad_set_chain_function (goom->sinkpad, + GST_DEBUG_FUNCPTR (gst_goom_chain)); + gst_pad_set_event_function (goom->sinkpad, + GST_DEBUG_FUNCPTR (gst_goom_sink_event)); + gst_pad_set_setcaps_function (goom->sinkpad, + GST_DEBUG_FUNCPTR (gst_goom_sink_setcaps)); gst_element_add_pad (GST_ELEMENT (goom), goom->sinkpad); goom->srcpad = gst_pad_new_from_static_template (&src_template, "src"); - gst_pad_set_setcaps_function (goom->srcpad, gst_goom_src_setcaps); - gst_pad_set_event_function (goom->srcpad, gst_goom_src_event); + gst_pad_set_setcaps_function (goom->srcpad, + GST_DEBUG_FUNCPTR (gst_goom_src_setcaps)); + gst_pad_set_event_function (goom->srcpad, + GST_DEBUG_FUNCPTR (gst_goom_src_event)); gst_element_add_pad (GST_ELEMENT (goom), goom->srcpad); goom->adapter = gst_adapter_new (); @@ -548,7 +557,6 @@ gst_goom_change_state (GstElement * element, GstStateChange transition) GstGoom *goom = GST_GOOM (element); GstStateChangeReturn ret; - switch (transition) { case GST_STATE_CHANGE_NULL_TO_READY: break; diff --git a/gst/goom/gstgoom.h b/gst/goom/gstgoom.h index cf49cdd8..e3432dea 100644 --- a/gst/goom/gstgoom.h +++ b/gst/goom/gstgoom.h @@ -28,10 +28,10 @@ G_BEGIN_DECLS #define GOOM_SAMPLES 512 -#define GST_TYPE_GOOM (gst_goom_get_type()) -#define GST_GOOM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GOOM,GstGoom)) -#define GST_GOOM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GOOM,GstGoomClass)) -#define GST_IS_GOOM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GOOM)) +#define GST_TYPE_GOOM (gst_goom_get_type()) +#define GST_GOOM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GOOM,GstGoom)) +#define GST_GOOM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GOOM,GstGoomClass)) +#define GST_IS_GOOM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GOOM)) #define GST_IS_GOOM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GOOM)) typedef struct _GstGoom GstGoom; |