From 0fc16a8e744c602435a65669961a68e60021aa9e Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 12 Oct 2009 09:50:00 +0200 Subject: [PATCH] gst: Add debugging category GST_POLL for gstpoll --- gst/gst_private.h | 2 ++ gst/gstinfo.c | 3 +++ gst/gstpoll.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/gst/gst_private.h b/gst/gst_private.h index ea9b2eb37c..1db8c54698 100644 --- a/gst/gst_private.h +++ b/gst/gst_private.h @@ -157,6 +157,7 @@ GST_EXPORT GstDebugCategory *GST_CAT_PROBE; GST_EXPORT GstDebugCategory *GST_CAT_REGISTRY; GST_EXPORT GstDebugCategory *GST_CAT_QOS; GST_EXPORT GstDebugCategory *GST_CAT_TYPES; /* FIXME 0.11: remove? */ +GST_EXPORT GstDebugCategory *GST_CAT_POLL; #else @@ -192,6 +193,7 @@ GST_EXPORT GstDebugCategory *GST_CAT_TYPES; /* FIXME 0.11: remove? */ #define GST_CAT_REGISTRY NULL #define GST_CAT_QOS NULL #define GST_CAT_TYPES NULL +#define GST_CAT_POLL NULL #endif diff --git a/gst/gstinfo.c b/gst/gstinfo.c index 6731a8ba18..fde26f42f2 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -165,6 +165,8 @@ GstDebugCategory *GST_CAT_SIGNAL = NULL; GstDebugCategory *GST_CAT_PROBE = NULL; GstDebugCategory *GST_CAT_REGISTRY = NULL; GstDebugCategory *GST_CAT_QOS = NULL; +GstDebugCategory *GST_CAT_POLL = NULL; + #endif /* !defined(GST_DISABLE_GST_DEBUG) || !defined(GST_REMOVE_DISABLED) */ @@ -395,6 +397,7 @@ _gst_debug_init (void) GST_DEBUG_BOLD | GST_DEBUG_FG_GREEN, "pad probes"); GST_CAT_REGISTRY = _gst_debug_category_new ("GST_REGISTRY", 0, "registry"); GST_CAT_QOS = _gst_debug_category_new ("GST_QOS", 0, "QoS"); + GST_CAT_POLL = _gst_debug_category_new ("GST_POLL", 0, "poll"); /* print out the valgrind message if we're in valgrind */ diff --git a/gst/gstpoll.c b/gst/gstpoll.c index 169e1c2f3b..a49c6e4a99 100644 --- a/gst/gstpoll.c +++ b/gst/gstpoll.c @@ -84,6 +84,8 @@ #include "gstpoll.h" +#define GST_CAT_DEFAULT GST_CAT_POLL + #ifndef G_OS_WIN32 /* the poll/select call is also performed on a control socket, that way * we can send special commands to control it