[PATCH v2 0/1] MR11118: winegstreamer: Update instead of overriding the latency settings in transform_src_query_latency().
A valid GstQuery is passed to the function, so we should update the values already set there. -- v2: winegstreamer: Update instead of overriding the latency settings in transform_src_query_latency(). https://gitlab.winehq.org/wine/wine/-/merge_requests/11118
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..80cca98fd36 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
This merge request was approved by Rémi Bernon. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11118
participants (3)
-
Conor McCarthy -
Conor McCarthy (@cmccarthy) -
Rémi Bernon (@rbernon)