winegstreamer: Use wg_format_to_caps() in GST_QUERY_CAPS.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-02-09 17:13:56 -06:00 committed by Alexandre Julliard
parent 897800fd44
commit f0a0b9404e
1 changed files with 1 additions and 1 deletions

View File

@ -940,7 +940,7 @@ static gboolean query_sink(GstPad *pad, GstObject *parent, GstQuery *query)
gst_query_parse_caps(query, &filter);
if (stream->enabled)
caps = amt_to_gst_caps(&pin->pin.pin.mt);
caps = wg_format_to_caps(&stream->current_format);
else
caps = gst_caps_new_any();
if (!caps)