python: Avoid treating float as int
authorThibault Saunier <tsaunier@igalia.com>
Wed, 17 Nov 2021 02:36:10 +0000 (23:36 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 18 Nov 2021 00:19:46 +0000 (00:19 +0000)
commitf95f63c5af5d3b06faf8813b5f429d47aa3130bb
tree6cfbbb959dd640461d68fbf8919bd5e6dadb2b0b
parent219d757ac52d4593383fc19447dad89de48b93b0
python: Avoid treating float as int

Since python 3.10 implicit conversion to integers using `__int__` as
been completely removed (was deprecated behavior in 3.9) so we need
to cleanly handle it now.

See https://gitlab.gnome.org/GNOME/pitivi/-/issues/2589

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1358>
subprojects/gst-python/gi/overrides/gstmodule.c