vadeinterlace: Fix passthrough latency query
authorEric Knapp <emkman99@gmail.com>
Fri, 16 Sep 2022 19:45:11 +0000 (15:45 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 17 Sep 2022 05:47:41 +0000 (05:47 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3038>

subprojects/gst-plugins-bad/sys/va/gstvadeinterlace.c

index c7b7290..368ffec 100644 (file)
@@ -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;