From 74c75b1e8bf6b3ddbd5cc75b8d87da57d08e6689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 25 Oct 2021 16:53:14 +0200 Subject: [PATCH] vah265dec: Fix end_picture() vmethod. Since commit 88437a9c the signature of h265decoder's end_picture() changed to return GstFlowReturn, but vah265dec was not updated. This commit fixes this regression. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvah265dec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c b/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c index be1097007a..51158650da 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c @@ -188,7 +188,7 @@ _submit_previous_slice (GstVaBaseDec * base, GstVaDecodePicture * va_pic) return ret; } -static gboolean +static GstFlowReturn gst_va_h265_dec_end_picture (GstH265Decoder * decoder, GstH265Picture * picture) { GstVaBaseDec *base = GST_VA_BASE_DEC (decoder); @@ -210,17 +210,17 @@ gst_va_h265_dec_end_picture (GstH265Decoder * decoder, GstH265Picture * picture) if (!ret) { GST_ERROR_OBJECT (self, "Failed to submit the previous slice"); - return FALSE; + return GST_FLOW_ERROR; } ret = gst_va_decoder_decode (base->decoder, va_pic); if (!ret) { GST_ERROR_OBJECT (self, "Failed at end picture %p, (poc %d)", picture, picture->pic_order_cnt); - return FALSE; + return GST_FLOW_ERROR; } - return TRUE; + return GST_FLOW_OK; } static GstFlowReturn