ges-source-clip: fixed return of duration setter
authorHenry Wilkes <hwilkes@igalia.com>
Sat, 14 Dec 2019 17:04:54 +0000 (17:04 +0000)
committerHenry Wilkes <hwilkes@igalia.com>
Sat, 14 Dec 2019 18:12:51 +0000 (18:12 +0000)
commit7b5f655c9a76cc39e75aef653d292025c282f54e
tree6c059111815a70e7a7b1a98af07bde34616dd16e
parenteabcaa1a56ff9ab6a671f9d532a2327210e4315f
ges-source-clip: fixed return of duration setter

In general, brought the behaviour of the `start`, `duration` and
`inpoint` setters in line with each other. In particular:
1. fixed return value the GESSourceClip `duration` setter
2. changed the GESClip `start` setter
3. fixed the inpoint callback for GESContainer
4. changed the type of `res` in GESTimelineElement to be gint to
   emphasise that the GES library is using the hack that a return of -1
   from klass->set_duration means no notify signal should be sent out.

Also added a new test for clips to ensure that the setters work for
clips within and outside of timelines, and that the `start`, `inpoint`
and `duration` of a clip will match its children.
ges/ges-clip.c
ges/ges-container.c
ges/ges-source-clip.c
ges/ges-timeline-element.c
tests/check/ges/clip.c