From 899792a5ef3ddbeff4cb660cff226149c004209d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 28 Oct 2024 18:58:48 +0100 Subject: [PATCH] va{av1,vp9}enc: fix return value Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c | 12 ++++++------ subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c b/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c index d0ac0a4081..80a5228f57 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c @@ -3904,28 +3904,28 @@ gst_va_av1_enc_encode_frame (GstVaBaseEnc * base, self->rc.rc_ctrl_mode, self->rc.max_bitrate_bits, self->rc.target_percentage, self->rc.base_qindex, self->rc.min_qindex, self->rc.max_qindex, self->rc.mbbrc)) - return FALSE; + return GST_FLOW_ERROR; if (!gst_va_base_enc_add_quality_level_parameter (base, va_frame->base.picture, self->rc.target_usage)) - return FALSE; + return GST_FLOW_ERROR; if (!gst_va_base_enc_add_frame_rate_parameter (base, va_frame->base.picture)) - return FALSE; + return GST_FLOW_ERROR; if (!gst_va_base_enc_add_hrd_parameter (base, va_frame->base.picture, self->rc.rc_ctrl_mode, self->rc.cpb_length_bits)) - return FALSE; + return GST_FLOW_ERROR; _av1_fill_sequence_param (self, &seq_param); if (!_av1_add_sequence_param (self, va_frame->base.picture, &seq_param)) - return FALSE; + return GST_FLOW_ERROR; _av1_fill_sequence_header (self, &seq_param); if ((self->packed_headers & VA_ENC_PACKED_HEADER_SEQUENCE) && !_av1_add_sequence_header (self, va_frame, &size_offset)) - return FALSE; + return GST_FLOW_ERROR; } if (!_av1_encode_one_frame (self, va_frame, size_offset)) { diff --git a/subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c b/subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c index 204ae1366c..030c24a70f 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c @@ -2543,23 +2543,23 @@ gst_va_vp9_enc_encode_frame (GstVaBaseEnc * base, self->rc.rc_ctrl_mode, self->rc.max_bitrate_bits, self->rc.target_percentage, self->rc.base_qindex, self->rc.min_qindex, self->rc.max_qindex, self->rc.mbbrc)) - return FALSE; + return GST_FLOW_ERROR; if (!gst_va_base_enc_add_quality_level_parameter (base, va_frame->base.picture, self->rc.target_usage)) - return FALSE; + return GST_FLOW_ERROR; if (!gst_va_base_enc_add_frame_rate_parameter (base, va_frame->base.picture)) - return FALSE; + return GST_FLOW_ERROR; if (!gst_va_base_enc_add_hrd_parameter (base, va_frame->base.picture, self->rc.rc_ctrl_mode, self->rc.cpb_length_bits)) - return FALSE; + return GST_FLOW_ERROR; _vp9_fill_sequence_param (self, &seq_param); if (!_vp9_add_sequence_param (self, va_frame->base.picture, &seq_param)) - return FALSE; + return GST_FLOW_ERROR; } if (!_vp9_encode_one_frame (self, va_frame)) {