From 30afe21cd1528f6f579e1e3e39ec51a628bbba0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 29 Apr 2022 19:08:32 +0300 Subject: [PATCH] interlace: Add some more debug output to the getcaps function Part-of: --- subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c b/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c index 77ace6e966..bf7cbfea9c 100644 --- a/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c +++ b/subprojects/gst-plugins-bad/gst/interlace/gstinterlace.c @@ -891,6 +891,8 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter) top_field_first = interlace->top_field_first; GST_OBJECT_UNLOCK (interlace); + GST_DEBUG_OBJECT (pad, "Querying caps with filter %" GST_PTR_FORMAT, filter); + if (filter != NULL) { clean_filter = gst_caps_copy (filter); if (pattern == GST_INTERLACE_PATTERN_1_1) { @@ -928,9 +930,12 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter) } } + GST_DEBUG_OBJECT (pad, "Querying peer with filter %" GST_PTR_FORMAT, + clean_filter); tcaps = gst_pad_get_pad_template_caps (otherpad); othercaps = gst_pad_peer_query_caps (otherpad, clean_filter); othercaps = gst_caps_make_writable (othercaps); + GST_DEBUG_OBJECT (pad, "Other caps %" GST_PTR_FORMAT, othercaps); if (othercaps) { if (pattern == GST_INTERLACE_PATTERN_2_2) { for (i = 0; i < gst_caps_get_size (othercaps); ++i) {