Commit 90d4d1f0 authored by Thomas Guillem's avatar Thomas Guillem

chroma: cvpx: simplify error handling

parent 8cd66d98
......@@ -315,13 +315,12 @@ static int Open(vlc_object_t *obj)
if (b_need_pool
&& (p_sys->pool = cvpxpool_create(&p_filter->fmt_out.video, 3)) == NULL)
goto error;
{
Close(obj);
return VLC_EGENERIC;
}
return VLC_SUCCESS;
error:
Close(obj);
return VLC_EGENERIC;
#undef CASE_CVPX_INPUT
#undef CASE_CVPX_OUTPUT
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment