volume: Do not try to get binding value array if we are not processing any sample
authorThibault Saunier <tsaunier@gnome.org>
Thu, 5 Nov 2015 10:34:07 +0000 (11:34 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 5 Nov 2015 10:44:31 +0000 (11:44 +0100)
commit9c7d3c8ab2182fd02429d8adc0ffb60237caf1a5
tree2a211dd2c9bc6ca7ebec639344df9974ee056e03
parentf86ed8cdf61c63bf397f9678152ea4e9ed5b5293
volume: Do not try to get binding value array if we are not processing any sample

In some conditions we might process empty buffers, calling
gst_control_binding_get_value_array in that case will lead
to the assertion:

  (lt-ges-launch-1.0:18859): GStreamer-CRITICAL **: gst_control_binding_get_value_array: assertion 'values' failed
gst/volume/gstvolume.c