theoraenc: move debug category init earlier
authorDavid Schleef <ds@schleef.org>
Sat, 5 Feb 2011 01:36:40 +0000 (17:36 -0800)
committerDavid Schleef <ds@schleef.org>
Fri, 18 Feb 2011 02:29:56 +0000 (18:29 -0800)
ext/theora/gsttheoraenc.c

index a6a8640..6a09c2c 100644 (file)
@@ -298,6 +298,8 @@ gst_theora_enc_class_init (GstTheoraEncClass * klass)
   int default_speed_level = THEORA_DEF_SPEEDLEVEL;
   int max_speed_level = default_speed_level;
 
+  GST_DEBUG_CATEGORY_INIT (theoraenc_debug, "theoraenc", 0, "Theora encoder");
+
   th_ctx = dummy_encode_ctx ();
   if (th_ctx) {
     if (!check_speed_level (th_ctx, &default_speed_level, &max_speed_level))
@@ -410,7 +412,6 @@ gst_theora_enc_class_init (GstTheoraEncClass * klass)
           (GParamFlags) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   gstelement_class->change_state = theora_enc_change_state;
-  GST_DEBUG_CATEGORY_INIT (theoraenc_debug, "theoraenc", 0, "Theora encoder");
 }
 
 static void