https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/blob/ee8144e98b084d75ffabaef0ef3dca2af8d72061/gst-libs/gst/player/gstplayer.c#L467