]> git.sesse.net Git - vlc/commitdiff
omxil: Avoid a double dll_close if the necessary functions aren't found
authorMartin Storsjö <martin@martin.st>
Sun, 2 Oct 2011 19:41:29 +0000 (22:41 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 2 Oct 2011 19:51:29 +0000 (22:51 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/codec/omxil/omxil.c

index ebaeaaee7490bf43448f7d1d57c6286f655ae76f..e0679c954aefe5c367b0ec52d099f9140b2d5607 100644 (file)
@@ -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;
     }