summaryrefslogtreecommitdiff
path: root/gst/audiovisualizers/gstwavescope.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/audiovisualizers/gstwavescope.c')
-rw-r--r--gst/audiovisualizers/gstwavescope.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/gst/audiovisualizers/gstwavescope.c b/gst/audiovisualizers/gstwavescope.c
index f584b6992..91a935b25 100644
--- a/gst/audiovisualizers/gstwavescope.c
+++ b/gst/audiovisualizers/gstwavescope.c
@@ -122,7 +122,11 @@ static gboolean gst_wave_scope_render (GstAudioVisualizer * base,
GstBuffer * audio, GstVideoFrame * video);
#define gst_wave_scope_parent_class parent_class
-G_DEFINE_TYPE (GstWaveScope, gst_wave_scope, GST_TYPE_AUDIO_VISUALIZER);
+G_DEFINE_TYPE_WITH_CODE (GstWaveScope, gst_wave_scope,
+ GST_TYPE_AUDIO_VISUALIZER, GST_DEBUG_CATEGORY_INIT (wave_scope_debug,
+ "wavescope", 0, "wavescope"););
+GST_ELEMENT_REGISTER_DEFINE (wavescope, "wavescope", GST_RANK_NONE,
+ GST_TYPE_WAVE_SCOPE);
static void
gst_wave_scope_class_init (GstWaveScopeClass * g_class)
@@ -422,12 +426,3 @@ gst_wave_scope_render (GstAudioVisualizer * base, GstBuffer * audio,
return TRUE;
}
-
-gboolean
-gst_wave_scope_plugin_init (GstPlugin * plugin)
-{
- GST_DEBUG_CATEGORY_INIT (wave_scope_debug, "wavescope", 0, "wavescope");
-
- return gst_element_register (plugin, "wavescope", GST_RANK_NONE,
- GST_TYPE_WAVE_SCOPE);
-}