From 74eafb859545eb11b1b2f49aef3a1b2c13eb8e2f Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 18 Jul 2004 15:58:04 +0000 Subject: [PATCH] add debug categories to matroska Original commit message from CVS: add debug categories to matroska --- ChangeLog | 7 +++++++ gst/matroska/matroska-demux.c | 10 ++++++++++ gst/matroska/matroska-mux.c | 6 ++++++ 3 files changed, 23 insertions(+) diff --git a/ChangeLog b/ChangeLog index d269b64be0..fb3fbad46f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-07-18 Thomas Vander Stichele + + * gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init), + (gst_matroska_demux_add_stream): + * gst/matroska/matroska-mux.c: (gst_matroska_mux_class_init): + add debug categories + 2004-07-16 Wim Taymans * ext/libpng/Makefile.am: diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index ae670c6887..0772644472 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -33,6 +33,9 @@ #include "matroska-demux.h" #include "matroska-ids.h" +GST_DEBUG_CATEGORY (matroskademux_debug); +#define GST_CAT_DEFAULT matroskademux_debug + enum { /* FILL ME */ @@ -159,6 +162,9 @@ gst_matroska_demux_class_init (GstMatroskaDemuxClass * klass) gstelement_class->change_state = gst_matroska_demux_change_state; gstelement_class->send_event = gst_matroska_demux_send_event; gstelement_class->set_clock = gst_matroska_demux_set_clock; + + GST_DEBUG_CATEGORY_INIT (matroskademux_debug, "matroskademux", 0, + "Matroska demuxer"); } static void @@ -453,6 +459,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux) break; } videocontext->display_width = num; + GST_DEBUG ("display_width %" G_GUINT64_FORMAT, num); break; } @@ -465,6 +472,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux) break; } videocontext->display_height = num; + GST_DEBUG ("display_height %" G_GUINT64_FORMAT, num); break; } @@ -477,6 +485,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux) break; } videocontext->pixel_width = num; + GST_DEBUG ("pixel_width %" G_GUINT64_FORMAT, num); break; } @@ -489,6 +498,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux) break; } videocontext->pixel_height = num; + GST_DEBUG ("pixel_height %" G_GUINT64_FORMAT, num); break; } diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index f9ea3b7769..736a9aa68d 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -29,6 +29,9 @@ #include "matroska-mux.h" #include "matroska-ids.h" +GST_DEBUG_CATEGORY (matroskamux_debug); +#define GST_CAT_DEFAULT matroskamux_debug + enum { /* FILL ME */ @@ -204,6 +207,9 @@ gst_matroska_mux_class_init (GstMatroskaMuxClass * klass) gstelement_class->change_state = gst_matroska_mux_change_state; gstelement_class->request_new_pad = gst_matroska_mux_request_new_pad; + + GST_DEBUG_CATEGORY_INIT (matroskamux_debug, "matroskamux", 0, + "Matroska muxer"); } static void