vabaseenc: Move out encoder validation from assertion.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 20 Sep 2022 11:38:26 +0000 (13:38 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 20 Sep 2022 18:59:18 +0000 (18:59 +0000)
commitf9371ccc38dc7953e0fb8591817c108f6fa3caa8
tree1e2c1e6377986cdf94ac55330a54a791456c5f47
parent7c266306519cb3473b1aa6f2ecc522771df1e643
vabaseenc: Move out encoder validation from assertion.

Assertion can be disabled at compilation time. Still it's important to
validate it the encoder object was opened by the subclass. This patch
removes the assertion and returns if the encoder is open.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3051>
subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c