From: Conor McCarthy <cmccarthy@codeweavers.com> A valid GstQuery is passed to the function, so we should update the values already set there. --- dlls/winegstreamer/wg_transform.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/winegstreamer/wg_transform.c b/dlls/winegstreamer/wg_transform.c index 1537a88d614..2b98f27df41 100644 --- a/dlls/winegstreamer/wg_transform.c +++ b/dlls/winegstreamer/wg_transform.c @@ -296,8 +296,13 @@ static GstFlowReturn transform_sink_chain_cb(GstPad *pad, GstObject *parent, Gst static gboolean transform_src_query_latency(struct wg_transform *transform, GstQuery *query) { + GstClockTime min, max; + gboolean live; + GST_LOG("transform %p, %"GST_PTR_FORMAT, transform, query); - gst_query_set_latency(query, transform->attrs.low_latency, 0, 0); + + gst_query_parse_latency(query, &live, &min, &max); + gst_query_set_latency(query, live | transform->attrs.low_latency, min, max); return true; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11118