Make function signature consistent with that of command queue Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7057>