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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3063>
This commit is contained in:
Víctor Manuel Jáquez Leal 2022-08-11 12:50:27 +02:00 committed by GStreamer Marge Bot
parent d608872ba3
commit 79c47fbdb8

View file

@ -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