summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-03-23 18:51:52 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-03-23 18:52:11 +0100
commit5077f4c958bf82ec5e89fc761c727ba4c86eeb45 (patch)
treeb5ddade75d5180e2e9228a730020f0127fa2123e /gst
parent003e89d44b446d1e58f9a05501da31877a644924 (diff)
utils: add and improve debug messages
... so they end up in a more expected debug category rather than oblivion.
Diffstat (limited to 'gst')
-rw-r--r--gst/gstutils.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/gst/gstutils.c b/gst/gstutils.c
index 8cfbde01d..9e7f55173 100644
--- a/gst/gstutils.c
+++ b/gst/gstutils.c
@@ -2917,13 +2917,15 @@ gst_pad_query_caps (GstPad * pad, GstCaps * filter)
g_return_val_if_fail (GST_IS_PAD (pad), NULL);
g_return_val_if_fail (filter == NULL || GST_IS_CAPS (filter), NULL);
- GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad, "get pad caps");
+ GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
+ "get pad caps with filter %" GST_PTR_FORMAT, filter);
query = gst_query_new_caps (filter);
if (gst_pad_query (pad, query)) {
gst_query_parse_caps_result (query, &result);
gst_caps_ref (result);
- GST_DEBUG_OBJECT (pad, "query returned %" GST_PTR_FORMAT, result);
+ GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
+ "query returned %" GST_PTR_FORMAT, result);
} else if (filter) {
result = gst_caps_ref (filter);
} else {
@@ -2960,11 +2962,15 @@ gst_pad_peer_query_caps (GstPad * pad, GstCaps * filter)
g_return_val_if_fail (GST_IS_PAD (pad), NULL);
g_return_val_if_fail (filter == NULL || GST_IS_CAPS (filter), NULL);
+ GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
+ "get pad peer caps with filter %" GST_PTR_FORMAT, filter);
+
query = gst_query_new_caps (filter);
if (gst_pad_peer_query (pad, query)) {
gst_query_parse_caps_result (query, &result);
gst_caps_ref (result);
- GST_DEBUG_OBJECT (pad, "peer query returned %" GST_PTR_FORMAT, result);
+ GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
+ "peer query returned %" GST_PTR_FORMAT, result);
} else if (filter) {
result = gst_caps_ref (filter);
} else {