Zebediah Figura : winegstreamer: Use wg_format_to_caps() in GST_QUERY_CAPS.

Alexandre Julliard julliard at winehq.org
Wed Feb 10 15:34:01 CST 2021


Module: wine
Branch: master
Commit: f0a0b9404ec2fc1186c9c8171ae6233690d36771
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f0a0b9404ec2fc1186c9c8171ae6233690d36771

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue Feb  9 17:13:56 2021 -0600

winegstreamer: Use wg_format_to_caps() in GST_QUERY_CAPS.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/gstdemux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 51e7a5abef1..070e2eca7f7 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -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)




More information about the wine-cvs mailing list