va: vpp: don't break passthrough if no color balance required
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 5 Feb 2021 15:46:00 +0000 (16:46 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 5 Feb 2021 17:52:56 +0000 (18:52 +0100)
The function `_add_filter_cb_buffer()` returned TRUE if no color balance filter
are required, but that's is wrong, since it will break the passthrough. This
patch return FALSE which is the correct value for the situation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2007>

sys/va/gstvavpp.c

index 38a4cef3df673f0e128fe355011a78894c73910f..c5334eec824b4121bb370644be874463cc88c19e 100644 (file)
@@ -808,7 +808,7 @@ _add_filter_cb_buffer (GstVaVpp * self,
     return gst_va_filter_add_filter_buffer (self->filter, param,
         sizeof (*param), c);
   }
-  return TRUE;
+  return FALSE;
 }
 
 static void