element: Make return value of setters mean something
authorThibault Saunier <tsaunier@igalia.com>
Thu, 2 May 2019 15:41:10 +0000 (11:41 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 2 May 2019 16:10:11 +0000 (12:10 -0400)
commitd87578c843bba4c5bce8a36f5b86c51327bcd33b
treec4466c5c3b410bbdc49dd35513fe435e9d6c1ccf
parent2ab26ab3066e65aeb28c95b06e2acd9c7a7b51c2
element: Make return value of setters mean something

Setters return values should return %FALSE **only** when the value
could not be set, not when unchanged or when the subclass handled
it itself!

This patches makes it so the return value is meaningul by allowing
subclasses return anything different than `TRUE` or `FALSE` (convention
is -1) to let the subclass now that it took care of everything and
no signal should be emited.
ges/ges-clip.c
ges/ges-group.c
ges/ges-source-clip.c
ges/ges-timeline-element.c
ges/ges-timeline-element.h
ges/ges-track-element.c