diff --git a/ChangeLog b/ChangeLog index 4f9edd07b5..eb93c1b5fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-07-14 Thomas Vander Stichele + + * ext/theora/theoradec.c: (gst_theora_dec_class_init), + (theora_dec_src_query), (theora_dec_event): + * ext/theora/theoraenc.c: (gst_theora_enc_class_init): + add debugging categories. Remove \n's. + 2004-07-13 Johan Dahlin * gst/playback/gstplaybin.c (gst_play_bin_set_property) diff --git a/ext/theora/theoradec.c b/ext/theora/theoradec.c index 9df949b97b..a52cd948f7 100644 --- a/ext/theora/theoradec.c +++ b/ext/theora/theoradec.c @@ -26,6 +26,8 @@ #include #include +GST_DEBUG_CATEGORY (theoradec_debug); +#define GST_CAT_DEFAULT theoradec_debug #define GST_TYPE_THEORA_DEC \ (gst_theora_dec_get_type()) @@ -114,6 +116,8 @@ gst_theora_dec_class_init (GstTheoraDecClass * klass) GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass); gstelement_class->change_state = theora_dec_change_state; + + GST_DEBUG_CATEGORY_INIT (theoradec_debug, "theoradec", 0, "Theora decoder"); } static void @@ -230,7 +234,7 @@ theora_dec_src_query (GstPad * pad, GstQueryType query, GstFormat * format, return FALSE; GST_LOG_OBJECT (dec, - "query %u: peer returned granulepos: %llu - we return %llu (format %u)\n", + "query %u: peer returned granulepos: %llu - we return %llu (format %u)", query, granulepos, *value, *format); return TRUE; } @@ -281,7 +285,7 @@ theora_dec_event (GstTheoraDec * dec, GstEvent * event) if (gst_event_discont_get_value (event, GST_FORMAT_DEFAULT, &value)) { dec->granulepos = value; GST_DEBUG_OBJECT (dec, - "setting granuleposition to %" G_GUINT64_FORMAT " after discont\n", + "setting granuleposition to %" G_GUINT64_FORMAT " after discont", value); } else { GST_WARNING_OBJECT (dec, diff --git a/ext/theora/theoraenc.c b/ext/theora/theoraenc.c index 6b689aa5a1..b4539f32ab 100644 --- a/ext/theora/theoraenc.c +++ b/ext/theora/theoraenc.c @@ -26,6 +26,8 @@ #include #include +GST_DEBUG_CATEGORY (theoraenc_debug); +#define GST_CAT_DEFAULT theoraenc_debug #define GST_TYPE_THEORA_ENC \ (gst_theora_enc_get_type()) @@ -195,6 +197,7 @@ gst_theora_enc_class_init (GstTheoraEncClass * klass) (GParamFlags) G_PARAM_READWRITE)); gstelement_class->change_state = theora_enc_change_state; + GST_DEBUG_CATEGORY_INIT (theoraenc_debug, "theoraenc", 0, "Theora encoder"); } static void