diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-04-10 18:00:06 +0100 |
---|---|---|
committer | Dave Robillard <dave@drobilla.net> | 2009-05-03 12:03:14 -0400 |
commit | 50e54097c28a95436bd4fe2d0325f9b02ed9b4ef (patch) | |
tree | e2a1ccc4faac7fb9b2d26e6733f06fa763c3599e /sys | |
parent | 7d2e47cf7f947df007208f11b4ffaf074dbdc08a (diff) | |
download | gst-plugins-bad-50e54097c28a95436bd4fe2d0325f9b02ed9b4ef.tar.gz gst-plugins-bad-50e54097c28a95436bd4fe2d0325f9b02ed9b4ef.tar.bz2 gst-plugins-bad-50e54097c28a95436bd4fe2d0325f9b02ed9b4ef.zip |
dshowdec: fix compilation with the debugging system disabled
One GST_DEBUG_CATEGORY_INIT should be enough anyway.
Fixes #578562 (spotted by David Hoyt).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dshowdecwrapper/gstdshowaudiodec.cpp | 8 | ||||
-rw-r--r-- | sys/dshowdecwrapper/gstdshowvideodec.cpp | 8 |
2 files changed, 2 insertions, 14 deletions
diff --git a/sys/dshowdecwrapper/gstdshowaudiodec.cpp b/sys/dshowdecwrapper/gstdshowaudiodec.cpp index 74f5fb1d..fae5292d 100644 --- a/sys/dshowdecwrapper/gstdshowaudiodec.cpp +++ b/sys/dshowdecwrapper/gstdshowaudiodec.cpp @@ -358,13 +358,7 @@ gst_dshowaudiodec_class_init (GstDshowAudioDecClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_dshowaudiodec_change_state); - if (!parent_class) - parent_class = (GstElementClass *)g_type_class_ref (GST_TYPE_ELEMENT); - - if (!dshowaudiodec_debug) { - GST_DEBUG_CATEGORY_INIT (dshowaudiodec_debug, "dshowaudiodec", 0, - "Directshow filter audio decoder"); - } + parent_class = (GstElementClass *) g_type_class_peek_parent (klass); } static void diff --git a/sys/dshowdecwrapper/gstdshowvideodec.cpp b/sys/dshowdecwrapper/gstdshowvideodec.cpp index 71b15101..fab92914 100644 --- a/sys/dshowdecwrapper/gstdshowvideodec.cpp +++ b/sys/dshowdecwrapper/gstdshowvideodec.cpp @@ -410,13 +410,7 @@ gst_dshowvideodec_class_init (GstDshowVideoDecClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_dshowvideodec_change_state); - if (!parent_class) - parent_class = (GstElementClass *)g_type_class_ref (GST_TYPE_ELEMENT); - - if (!dshowvideodec_debug) { - GST_DEBUG_CATEGORY_INIT (dshowvideodec_debug, "dshowvideodec", 0, - "Directshow filter video decoder"); - } + parent_class = (GstElementClass *) g_type_class_peek_parent (klass); } static void |