Copied from https://gitlab.freedesktop.org//gstreamer/gst-editing-services/-/merge_requests/188
Fixes: gst-editing-services#24