vaapipostproc: update filters at color balance
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 22 Jul 2016 14:55:59 +0000 (16:55 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 22 Jul 2016 14:55:59 +0000 (16:55 +0200)
This is a fix for a regression of previous commit, which updates the filters
only when the property is set, because it is also required to update the
filter when the color balance interface change its values.

gst/vaapi/gstvaapipostproc.c

index 391fd27..15c7275 100644 (file)
@@ -1911,6 +1911,8 @@ gst_vaapipostproc_colorbalance_set_value (GstColorBalance * balance,
     *var = new_val;
     postproc->flags |= flags;
     gst_color_balance_value_changed (balance, channel, value);
+    if (check_filter_update (postproc))
+      gst_base_transform_reconfigure_src (GST_BASE_TRANSFORM (postproc));
     return;
   }