directcontrolbinding: Properly initialize default `last_value`
authorThibault Saunier <tsaunier@igalia.com>
Tue, 14 Jul 2020 04:03:18 +0000 (00:03 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 18 Jul 2020 20:47:29 +0000 (20:47 +0000)
commitaaa95cfef7a753173051516f23c92e6825d7947c
treeab8456b5286fcec454a69910749ecb8e225dbe4e
parent30dfa177be0cd2e341084717cc8a25a7a90f3dfd
directcontrolbinding: Properly initialize default `last_value`

It was zero and in some condition it means that the control binding
values where ignored (as shown in the test). Setting it to MAXDOUBLE
so that the first time we sync the values from a a timestamp in the
right range the proper value is computed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/564>
libs/gst/controller/gstdirectcontrolbinding.c
tests/check/libs/controller.c