vadeinterlace: Fix passthrough latency query

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3038>
This commit is contained in:
Eric Knapp 2022-09-16 15:45:11 -04:00 committed by GStreamer Marge Bot
parent ec291ce6bb
commit f720a5dd66

View file

@ -645,15 +645,13 @@ gst_va_deinterlace_query (GstBaseTransform * trans, GstPadDirection direction,
{ {
GstVaDeinterlace *self = GST_VA_DEINTERLACE (trans); 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; GstPad *peer;
GstClockTime latency, min, max; GstClockTime latency, min, max;
gboolean res = FALSE; gboolean res = FALSE;
gboolean live; gboolean live;
if (gst_base_transform_is_passthrough (trans))
return FALSE;
peer = gst_pad_get_peer (GST_BASE_TRANSFORM_SINK_PAD (trans)); peer = gst_pad_get_peer (GST_BASE_TRANSFORM_SINK_PAD (trans));
if (!peer) if (!peer)
return FALSE; return FALSE;