[vlc-commits] addons: fix invalid function cast

Rémi Denis-Courmont git at videolan.org
Sun Apr 13 09:50:50 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 13 10:44:17 2014 +0300| [34f2fc3777085268f10416a841562c9874169da7] | committer: Rémi Denis-Courmont

addons: fix invalid function cast

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

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

diff --git a/src/misc/addons.c b/src/misc/addons.c
index c42d42d..6a99ed7 100644
--- a/src/misc/addons.c
+++ b/src/misc/addons.c
@@ -327,7 +327,7 @@ static void *FinderThread( void *p_data )
     for( ;; )
     {
         vlc_mutex_lock( &p_manager->p_priv->finder.lock );
-        vlc_cleanup_push( vlc_mutex_unlock, &p_manager->p_priv->finder.lock );
+        mutex_cleanup_push( &p_manager->p_priv->finder.lock );
         while( p_manager->p_priv->finder.uris.i_size == 0 )
         {
             vlc_cond_wait( &p_manager->p_priv->finder.waitcond,
@@ -441,7 +441,7 @@ static void *InstallerThread( void *p_data )
     for( ;; )
     {
         vlc_mutex_lock( &p_manager->p_priv->installer.lock );
-        vlc_cleanup_push( vlc_mutex_unlock, &p_manager->p_priv->installer.lock );
+        mutex_cleanup_push( &p_manager->p_priv->installer.lock );
         while ( !p_manager->p_priv->installer.entries.i_size )
         {
             /* No queued addons */



More information about the vlc-commits mailing list