mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
utils: add and improve debug messages
... so they end up in a more expected debug category rather than oblivion.
This commit is contained in:
parent
003e89d44b
commit
5077f4c958
1 changed files with 9 additions and 3 deletions
|
@ -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 (GST_IS_PAD (pad), NULL);
|
||||||
g_return_val_if_fail (filter == NULL || GST_IS_CAPS (filter), 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);
|
query = gst_query_new_caps (filter);
|
||||||
if (gst_pad_query (pad, query)) {
|
if (gst_pad_query (pad, query)) {
|
||||||
gst_query_parse_caps_result (query, &result);
|
gst_query_parse_caps_result (query, &result);
|
||||||
gst_caps_ref (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) {
|
} else if (filter) {
|
||||||
result = gst_caps_ref (filter);
|
result = gst_caps_ref (filter);
|
||||||
} else {
|
} 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 (GST_IS_PAD (pad), NULL);
|
||||||
g_return_val_if_fail (filter == NULL || GST_IS_CAPS (filter), 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);
|
query = gst_query_new_caps (filter);
|
||||||
if (gst_pad_peer_query (pad, query)) {
|
if (gst_pad_peer_query (pad, query)) {
|
||||||
gst_query_parse_caps_result (query, &result);
|
gst_query_parse_caps_result (query, &result);
|
||||||
gst_caps_ref (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) {
|
} else if (filter) {
|
||||||
result = gst_caps_ref (filter);
|
result = gst_caps_ref (filter);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue