From 79c47fbdb8edf5911fc6f378546be586702fba32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 11 Aug 2022 12:50:27 +0200 Subject: [PATCH] vabaseenc: Scope error bail out. Though this is not enforced by the GStreamer code style, it's clearer to add a nested scope for error handling using label/goto. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c index 4b5096dfdf..7a10381e50 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c @@ -591,9 +591,11 @@ error_encode: return ret; } error_push_buffer: - GST_ELEMENT_ERROR (venc, STREAM, ENCODE, - ("Failed to push the buffer."), (NULL)); - return ret; + { + GST_ELEMENT_ERROR (venc, STREAM, ENCODE, + ("Failed to push the buffer."), (NULL)); + return ret; + } } static GstFlowReturn -- 2.34.1