mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
7c26630651
commit
f9371ccc38
1 changed files with 1 additions and 3 deletions
|
@ -720,9 +720,7 @@ gst_va_base_enc_set_format (GstVideoEncoder * venc, GstVideoCodecState * state)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sub class should open the encoder if reconfig succeeds. */
|
/* Sub class should open the encoder if reconfig succeeds. */
|
||||||
g_assert (gst_va_encoder_is_open (base->encoder));
|
return gst_va_encoder_is_open (base->encoder);
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue