[vlc-devel] commit: We don't need the vlc_mutex_lock here. ( Rémi Duraffort )

git version control git at videolan.org
Sat Jun 28 19:08:51 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jun 28 19:00:05 2008 +0200| [64ee6dd8aabaf747999f869514653b84cddf06ad]

We don't need the vlc_mutex_lock here.

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

 src/misc/update.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/misc/update.c b/src/misc/update.c
index 51d6ecb..45fb993 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -1068,8 +1068,6 @@ void update_Delete( update_t *p_update )
 {
     assert( p_update );
 
-    vlc_mutex_lock( &p_update->lock );
-
     if( p_update->p_check )
     {
         assert( !p_update->p_download );
@@ -1082,7 +1080,6 @@ void update_Delete( update_t *p_update )
         vlc_thread_join( p_update->p_download );
     }
 
-    vlc_mutex_unlock( &p_update->lock );
     vlc_mutex_destroy( &p_update->lock );
 
     free( p_update->release.psz_url );




More information about the vlc-devel mailing list