]> git.sesse.net Git - vlc/commitdiff
Oops, sed isn't always enough.
authorAntoine Cellerier <dionoea@videolan.org>
Thu, 11 Feb 2010 19:01:13 +0000 (20:01 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Thu, 11 Feb 2010 19:01:13 +0000 (20:01 +0100)
src/input/vlm.c

index 19f2a5635b677cb473f16fd99cf0650c203f5d6f..96197a1ca70f49f0018b01bfa72c11c6e68e94fc 100644 (file)
@@ -155,7 +155,6 @@ vlm_t *vlm_New ( vlc_object_t *p_this )
         return NULL;
     }
 
-    vlc_mutex_init( &p_vlm->lock );
     vlc_mutex_init( &p_vlm->lock );
     vlc_cond_init_daytime( &p_vlm->wait );
     p_vlm->i_id = 1;
@@ -170,7 +169,6 @@ vlm_t *vlm_New ( vlc_object_t *p_this )
     {
         vlc_cond_destroy( &p_vlm->wait );
         vlc_mutex_destroy( &p_vlm->lock );
-        vlc_mutex_destroy( &p_vlm->lock );
         vlc_object_release( p_vlm );
         vlc_mutex_unlock( &vlm_mutex );
         return NULL;
@@ -239,7 +237,6 @@ static void vlm_Destructor( vlm_t *p_vlm )
 
     vlc_cond_destroy( &p_vlm->wait );
     vlc_mutex_destroy( &p_vlm->lock );
-    vlc_mutex_destroy( &p_vlm->lock );
 }
 
 /*****************************************************************************