mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
add debug categories
Original commit message from CVS: add debug categories
This commit is contained in:
parent
94a5340c95
commit
44f6a2008b
3 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-07-14 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* 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 <johan@gnome.org>
|
2004-07-13 Johan Dahlin <johan@gnome.org>
|
||||||
|
|
||||||
* gst/playback/gstplaybin.c (gst_play_bin_set_property)
|
* gst/playback/gstplaybin.c (gst_play_bin_set_property)
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <gst/tag/tag.h>
|
#include <gst/tag/tag.h>
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY (theoradec_debug);
|
||||||
|
#define GST_CAT_DEFAULT theoradec_debug
|
||||||
|
|
||||||
#define GST_TYPE_THEORA_DEC \
|
#define GST_TYPE_THEORA_DEC \
|
||||||
(gst_theora_dec_get_type())
|
(gst_theora_dec_get_type())
|
||||||
|
@ -114,6 +116,8 @@ gst_theora_dec_class_init (GstTheoraDecClass * klass)
|
||||||
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
|
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
|
||||||
|
|
||||||
gstelement_class->change_state = theora_dec_change_state;
|
gstelement_class->change_state = theora_dec_change_state;
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_INIT (theoradec_debug, "theoradec", 0, "Theora decoder");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -230,7 +234,7 @@ theora_dec_src_query (GstPad * pad, GstQueryType query, GstFormat * format,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
GST_LOG_OBJECT (dec,
|
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);
|
query, granulepos, *value, *format);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -281,7 +285,7 @@ theora_dec_event (GstTheoraDec * dec, GstEvent * event)
|
||||||
if (gst_event_discont_get_value (event, GST_FORMAT_DEFAULT, &value)) {
|
if (gst_event_discont_get_value (event, GST_FORMAT_DEFAULT, &value)) {
|
||||||
dec->granulepos = value;
|
dec->granulepos = value;
|
||||||
GST_DEBUG_OBJECT (dec,
|
GST_DEBUG_OBJECT (dec,
|
||||||
"setting granuleposition to %" G_GUINT64_FORMAT " after discont\n",
|
"setting granuleposition to %" G_GUINT64_FORMAT " after discont",
|
||||||
value);
|
value);
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING_OBJECT (dec,
|
GST_WARNING_OBJECT (dec,
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <gst/tag/tag.h>
|
#include <gst/tag/tag.h>
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY (theoraenc_debug);
|
||||||
|
#define GST_CAT_DEFAULT theoraenc_debug
|
||||||
|
|
||||||
#define GST_TYPE_THEORA_ENC \
|
#define GST_TYPE_THEORA_ENC \
|
||||||
(gst_theora_enc_get_type())
|
(gst_theora_enc_get_type())
|
||||||
|
@ -195,6 +197,7 @@ gst_theora_enc_class_init (GstTheoraEncClass * klass)
|
||||||
(GParamFlags) G_PARAM_READWRITE));
|
(GParamFlags) G_PARAM_READWRITE));
|
||||||
|
|
||||||
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