From f720a5dd66a726be1927ec52c2df31b01e503bd6 Mon Sep 17 00:00:00 2001 From: Eric Knapp Date: Fri, 16 Sep 2022 15:45:11 -0400 Subject: [PATCH] vadeinterlace: Fix passthrough latency query Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvadeinterlace.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvadeinterlace.c b/subprojects/gst-plugins-bad/sys/va/gstvadeinterlace.c index c7b7290..368ffec 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvadeinterlace.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvadeinterlace.c @@ -645,15 +645,13 @@ gst_va_deinterlace_query (GstBaseTransform * trans, GstPadDirection direction, { GstVaDeinterlace *self = GST_VA_DEINTERLACE (trans); - if (direction == GST_PAD_SRC && GST_QUERY_TYPE (query) == GST_QUERY_LATENCY) { + if (direction == GST_PAD_SRC && GST_QUERY_TYPE (query) == GST_QUERY_LATENCY + && !gst_base_transform_is_passthrough (trans)) { GstPad *peer; GstClockTime latency, min, max; gboolean res = FALSE; gboolean live; - if (gst_base_transform_is_passthrough (trans)) - return FALSE; - peer = gst_pad_get_peer (GST_BASE_TRANSFORM_SINK_PAD (trans)); if (!peer) return FALSE; -- 2.7.4