qtmux: init debug category before using it

This commit is contained in:
Tim-Philipp Müller 2010-03-25 00:20:54 +00:00
parent 868c706941
commit 0c97f9a9be

View file

@ -245,8 +245,6 @@ gst_qt_mux_class_init (GstQTMuxClass * klass)
GST_DEBUG_FUNCPTR (gst_qt_mux_request_new_pad);
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_qt_mux_change_state);
gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_qt_mux_release_pad);
GST_DEBUG_CATEGORY_INIT (gst_qt_mux_debug, "qtmux", 0, "QT Muxer");
}
static void
@ -2742,6 +2740,8 @@ gst_qt_mux_register (GstPlugin * plugin)
GstQTMuxClassParams *params;
guint i = 0;
GST_DEBUG_CATEGORY_INIT (gst_qt_mux_debug, "qtmux", 0, "QT Muxer");
GST_LOG ("Registering muxers");
while (TRUE) {