summaryrefslogtreecommitdiff
path: root/sys/directsound
diff options
context:
space:
mode:
authorXavi Artigas <xartigas@fluendo.com>2014-04-08 13:20:54 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-04-08 13:39:22 +0200
commite12646f30a66e0d9f5586f5cb64963d728f081ca (patch)
tree014a2e122c086f225353931fddcf48b60d9ed209 /sys/directsound
parentff11934bbf98eeb62d70929f04425ac6661a99ad (diff)
downloadgstreamer-plugins-bad-e12646f30a66e0d9f5586f5cb64963d728f081ca.tar.gz
directsoundsrc: Fix critical due to missing debug category initialization
https://bugzilla.gnome.org/show_bug.cgi?id=727812
Diffstat (limited to 'sys/directsound')
-rw-r--r--sys/directsound/gstdirectsoundsrc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/directsound/gstdirectsoundsrc.c b/sys/directsound/gstdirectsoundsrc.c
index 2cc89f380..11063ca99 100644
--- a/sys/directsound/gstdirectsoundsrc.c
+++ b/sys/directsound/gstdirectsoundsrc.c
@@ -158,6 +158,9 @@ gst_directsound_src_class_init (GstDirectSoundSrcClass * klass)
gstbasesrc_class = (GstBaseSrcClass *) klass;
gstaudiosrc_class = (GstAudioSrcClass *) klass;
+ GST_DEBUG_CATEGORY_INIT (directsoundsrc_debug, "directsoundsrc", 0,
+ "DirectSound Src");
+
GST_DEBUG ("initializing directsoundsrc class");
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_directsound_src_finalize);
@@ -178,9 +181,6 @@ gst_directsound_src_class_init (GstDirectSoundSrcClass * klass)
gstaudiosrc_class->delay = GST_DEBUG_FUNCPTR (gst_directsound_src_delay);
gstaudiosrc_class->reset = GST_DEBUG_FUNCPTR (gst_directsound_src_reset);
- GST_DEBUG_CATEGORY_INIT (directsoundsrc_debug, "directsoundsrc", 0,
- "DirectSound Src");
-
gst_element_class_set_static_metadata (gstelement_class,
"DirectSound audio source", "Source/Audio",
"Capture from a soundcard via DirectSound",