paramspec: Fix array validation logic
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 15 Mar 2017 21:31:39 +0000 (17:31 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 24 Mar 2017 17:43:34 +0000 (13:43 -0400)
commit1a65d5b2520044cf212bad4f9b80ec3475447712
tree23aec407e957c978a2bed56da09c92f48670660a
parent3b9ff1245bb65a4ee94ea193e3fe28d2cb342224
paramspec: Fix array validation logic

A paramspec validation should modify the content to match what the spec
requires and return TURE if a modification happened. This previous
implementation would only fix the first element of the array and return.
It was also return TRUE for empty array, while no modification was
needed.

https://bugzilla.gnome.org/show_bug.cgi?id=780111
gst/gstparamspecs.c