[PATCH v2 5/5] winegstreamer: Trace the unfiltered caps in sink_query_cb().

Zebediah Figura zfigura at codeweavers.com
Wed Oct 6 11:46:36 CDT 2021


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
This has come in handy when debugging several times.

 dlls/winegstreamer/wg_parser.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/winegstreamer/wg_parser.c b/dlls/winegstreamer/wg_parser.c
index 9a382cb724c..0c23ae6d351 100644
--- a/dlls/winegstreamer/wg_parser.c
+++ b/dlls/winegstreamer/wg_parser.c
@@ -1006,6 +1006,7 @@ static gboolean sink_query_cb(GstPad *pad, GstObject *parent, GstQuery *query)
         case GST_QUERY_CAPS:
         {
             GstCaps *caps, *filter, *temp;
+            gchar *str;
 
             gst_query_parse_caps(query, &filter);
 
@@ -1016,6 +1017,10 @@ static gboolean sink_query_cb(GstPad *pad, GstObject *parent, GstQuery *query)
             if (!caps)
                 return FALSE;
 
+            str = gst_caps_to_string(caps);
+            GST_LOG("Stream caps are \"%s\".", str);
+            g_free(str);
+
             if (filter)
             {
                 temp = gst_caps_intersect(caps, filter);
-- 
2.33.0




More information about the wine-devel mailing list