https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/878
For master, without autotools.