diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c index 5e5b8c57ec..b2a4fc656d 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c @@ -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