Commit 6dae92cf authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winegstreamer: Trace wg_transform input and output caps.

parent e891073c
...@@ -324,6 +324,8 @@ NTSTATUS wg_transform_create(void *args) ...@@ -324,6 +324,8 @@ NTSTATUS wg_transform_create(void *args)
if (!transform->my_src) if (!transform->my_src)
goto out; goto out;
GST_INFO("transform %p input caps %"GST_PTR_FORMAT, transform, src_caps);
gst_pad_set_element_private(transform->my_src, transform); gst_pad_set_element_private(transform->my_src, transform);
gst_pad_set_query_function(transform->my_src, transform_src_query_cb); gst_pad_set_query_function(transform->my_src, transform_src_query_cb);
...@@ -336,6 +338,8 @@ NTSTATUS wg_transform_create(void *args) ...@@ -336,6 +338,8 @@ NTSTATUS wg_transform_create(void *args)
if (!transform->my_sink) if (!transform->my_sink)
goto out; goto out;
GST_INFO("transform %p output caps %"GST_PTR_FORMAT, transform, transform->output_caps);
gst_pad_set_element_private(transform->my_sink, transform); gst_pad_set_element_private(transform->my_sink, transform);
gst_pad_set_event_function(transform->my_sink, transform_sink_event_cb); gst_pad_set_event_function(transform->my_sink, transform_sink_event_cb);
gst_pad_set_query_function(transform->my_sink, transform_sink_query_cb); gst_pad_set_query_function(transform->my_sink, transform_sink_query_cb);
...@@ -505,6 +509,8 @@ NTSTATUS wg_transform_set_output_format(void *args) ...@@ -505,6 +509,8 @@ NTSTATUS wg_transform_set_output_format(void *args)
} }
transform->output_format = *format; transform->output_format = *format;
GST_INFO("transform %p output caps %"GST_PTR_FORMAT, transform, caps);
if (gst_caps_is_always_compatible(transform->output_caps, caps)) if (gst_caps_is_always_compatible(transform->output_caps, caps))
{ {
gst_caps_unref(caps); gst_caps_unref(caps);
...@@ -795,6 +801,8 @@ NTSTATUS wg_transform_read_data(void *args) ...@@ -795,6 +801,8 @@ NTSTATUS wg_transform_read_data(void *args)
{ {
GST_MINI_OBJECT_FLAG_UNSET(transform->output_sample, GST_SAMPLE_FLAG_WG_CAPS_CHANGED); GST_MINI_OBJECT_FLAG_UNSET(transform->output_sample, GST_SAMPLE_FLAG_WG_CAPS_CHANGED);
GST_INFO("transform %p output caps %"GST_PTR_FORMAT, transform, output_caps);
if (format) if (format)
{ {
gsize plane_align = transform->attrs.output_plane_align; gsize plane_align = transform->attrs.output_plane_align;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment