* Rename the function names to be clearer, with prefixes * Pass the input (or stream) directly where appropriate * Document usage, inputs, ownership * Rename variables for clarity where applicable * Avoid double lock/unlock if callee can handle it directly Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6774>