summaryrefslogtreecommitdiffstats
path: root/sys/dshowdecwrapper/gstdshowvideodec.cpp
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-04-10 18:00:06 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-04-10 18:00:06 +0100
commit2b1fcc75a740d2caa7774658eff1e6161d408c20 (patch)
treefbaf5dc3d5531d3d2be3834bc3e271adaa0ceae0 /sys/dshowdecwrapper/gstdshowvideodec.cpp
parentdde471ab49c2b16e1847ceb604c2f677858b0694 (diff)
downloadgst-plugins-bad-2b1fcc75a740d2caa7774658eff1e6161d408c20.tar.gz
gst-plugins-bad-2b1fcc75a740d2caa7774658eff1e6161d408c20.tar.bz2
gst-plugins-bad-2b1fcc75a740d2caa7774658eff1e6161d408c20.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/dshowdecwrapper/gstdshowvideodec.cpp')
-rw-r--r--sys/dshowdecwrapper/gstdshowvideodec.cpp8
1 files changed, 1 insertions, 7 deletions
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