]> git.sesse.net Git - vlc/commitdiff
Invert yield of module and release of module list (shouldn't matter but you never...
authorAntoine Cellerier <dionoea@videolan.org>
Wed, 22 Aug 2007 22:16:36 +0000 (22:16 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Wed, 22 Aug 2007 22:16:36 +0000 (22:16 +0000)
src/modules/modules.c

index c4a235598905af937926f276022fb1b12c202a0d..49c179dca356ed0acdfe563edb6f1a5faff1b5fd 100644 (file)
@@ -780,8 +780,8 @@ module_t *__module_FindName( vlc_object_t *p_this, const char * psz_name )
         if( psz_module_name && !strcmp( psz_module_name, psz_name ) )
         {
             /* We can release the list, and return yes */
-            vlc_list_release( p_list );
             vlc_object_yield( p_module );
+            vlc_list_release( p_list );
             return p_module;
         }
     }