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>
This commit is contained in:
Víctor Manuel Jáquez Leal 2022-09-20 13:38:26 +02:00 committed by GStreamer Marge Bot
parent 7c26630651
commit f9371ccc38

View file

@ -720,9 +720,7 @@ gst_va_base_enc_set_format (GstVideoEncoder * venc, GstVideoCodecState * state)
}
/* Sub class should open the encoder if reconfig succeeds. */
g_assert (gst_va_encoder_is_open (base->encoder));
return TRUE;
return gst_va_encoder_is_open (base->encoder);
}
static gboolean