To propagate error, this commit sets a reason. Otherwise, the function caller should check if `error` is NULL when the return value is not normal. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1522>
To propagate error, this commit sets a reason. Otherwise, the function caller should check if `error` is NULL when the return value is not normal. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1522>