[vlc-commits] omxil: Avoid a double dll_close if the necessary functions aren't found

Martin Storsjö git at videolan.org
Sun Oct 2 21:51:38 CEST 2011


vlc | branch: master | Martin Storsjö <martin at martin.st> | Sun Oct  2 22:41:29 2011 +0300| [21d370a594b8da29d7a204c3f4868151e9e9f054] | committer: Rémi Denis-Courmont

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

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=21d370a594b8da29d7a204c3f4868151e9e9f054
---

 modules/codec/omxil/omxil.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index ebaeaae..e0679c9 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -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;
     }
 



More information about the vlc-commits mailing list