mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
theoraenc: move debug category init earlier
This commit is contained in:
parent
15e23414d3
commit
9745a41ea3
1 changed files with 2 additions and 1 deletions
|
@ -298,6 +298,8 @@ gst_theora_enc_class_init (GstTheoraEncClass * klass)
|
||||||
int default_speed_level = THEORA_DEF_SPEEDLEVEL;
|
int default_speed_level = THEORA_DEF_SPEEDLEVEL;
|
||||||
int max_speed_level = default_speed_level;
|
int max_speed_level = default_speed_level;
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_INIT (theoraenc_debug, "theoraenc", 0, "Theora encoder");
|
||||||
|
|
||||||
th_ctx = dummy_encode_ctx ();
|
th_ctx = dummy_encode_ctx ();
|
||||||
if (th_ctx) {
|
if (th_ctx) {
|
||||||
if (!check_speed_level (th_ctx, &default_speed_level, &max_speed_level))
|
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));
|
(GParamFlags) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
gstelement_class->change_state = theora_enc_change_state;
|
gstelement_class->change_state = theora_enc_change_state;
|
||||||
GST_DEBUG_CATEGORY_INIT (theoraenc_debug, "theoraenc", 0, "Theora encoder");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue