Commit 21d370a5 authored by Martin Storsjö's avatar Martin Storsjö Committed by Rémi Denis-Courmont

omxil: Avoid a double dll_close if the necessary functions aren't found

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 7df1090a
......@@ -783,11 +783,6 @@ static int OpenGeneric( vlc_object_t *p_this, bool b_encode )
msg_Warn( p_this, "cannot find OMX_* symbols in `%s' (%s)",
ppsz_dll_list[i], dlerror() );
dll_close(dll_handle);
}
if( !pf_init || !pf_deinit || !pf_get_handle || !pf_free_handle || !pf_component_enum )
{
dll_close(dll_handle);
return VLC_EGENERIC;
}
......
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