mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-27 06:20:12 +00:00
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:
parent
d608872ba3
commit
79c47fbdb8
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue