[vlc-commits] addons: remove useless lock/unlock

Rémi Denis-Courmont git at videolan.org
Thu Jul 9 18:33:22 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul  9 19:15:10 2015 +0300| [02622a9dc7f6ef283c499b3b8e1c3da80e9fb136] | committer: Rémi Denis-Courmont

addons: remove useless lock/unlock

p_finder is not visible to other threads at this point.

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

 src/misc/addons.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/src/misc/addons.c b/src/misc/addons.c
index 5f3f73b..cd16a74 100644
--- a/src/misc/addons.c
+++ b/src/misc/addons.c
@@ -347,9 +347,7 @@ static void *FinderThread( void *p_data )
             p_finder->i_flags |= OBJECT_FLAGS_NOINTERACT;
             module_t *p_module;
             ARRAY_INIT( p_finder->entries );
-            vlc_mutex_lock( &p_manager->p_priv->finder.lock );
             p_finder->psz_uri = psz_uri;
-            vlc_mutex_unlock( &p_manager->p_priv->finder.lock );
 
             p_module = module_need( p_finder, "addons finder", NULL, false );
             if( p_module )



More information about the vlc-commits mailing list