timeline: emit snapping-started with new valid time
authorHenry Wilkes <hwilkes@igalia.com>
Mon, 27 Apr 2020 13:05:38 +0000 (14:05 +0100)
committerHenry Wilkes <hwilkes@igalia.com>
Thu, 7 May 2020 08:37:15 +0000 (09:37 +0100)
commitcda1cfa0df9b62e34639394a2b00cdb8c6ed484a
tree0dc8383ac4f0feb9424220dd444cea95274a5c51
parent39097f55746cd760242b4194a408e54bc1bb4c1b
timeline: emit snapping-started with new valid time

Only emit snapping-ended if we have a valid snap time. Moreover, we
should emit a new snapping-started even if we are snapping at the same
location. This is because a new snap will always correspond to a new edit,
possibly involving different snapping elements, which a user would want
to know about.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/169>
ges/ges-timeline.c
tests/check/python/test_timeline.py