mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
plugins: use early return without goto
https://bugzilla.gnome.org/show_bug.cgi?id=774782
This commit is contained in:
parent
acefc7e384
commit
ac18e0479f
1 changed files with 3 additions and 9 deletions
|
@ -699,22 +699,16 @@ ensure_sinkpad_buffer_pool (GstVaapiPluginBase * plugin, GstCaps * caps)
|
|||
}
|
||||
|
||||
if (!ensure_sinkpad_allocator (plugin, caps, &size))
|
||||
goto error;
|
||||
return FALSE;
|
||||
|
||||
pool = gst_vaapi_plugin_base_create_pool (plugin, caps, size, 0, 0,
|
||||
GST_VAAPI_VIDEO_BUFFER_POOL_OPTION_VIDEO_META, plugin->sinkpad_allocator);
|
||||
if (!pool)
|
||||
goto error;
|
||||
return FALSE;
|
||||
|
||||
plugin->sinkpad_buffer_pool = pool;
|
||||
plugin->sinkpad_buffer_size = size;
|
||||
return TRUE;
|
||||
|
||||
/* ERRORS */
|
||||
error:
|
||||
{
|
||||
/* error message already sent */
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue