smooth: remove logical no-op
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 9 Jul 2015 15:46:14 +0000 (18:46 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 9 Jul 2015 15:46:14 +0000 (18:46 +0300)
modules/stream_filter/smooth/smooth.c

index ddcbb63..d548bae 100644 (file)
@@ -540,11 +540,8 @@ static int Open( vlc_object_t *p_this )
     s->pf_peek = Peek;
     s->pf_control = Control;
 
-    vlc_mutex_lock( &p_sys->playback.lock );
-
     if( vlc_clone( &p_sys->download.thread, sms_Thread, s, VLC_THREAD_PRIORITY_INPUT ) )
     {
-        vlc_mutex_unlock( &p_sys->playback.lock );
         SysCleanup( p_sys );
         vlc_mutex_destroy( &p_sys->lock );
         vlc_cond_destroy( &p_sys->download.wait );
@@ -554,11 +551,6 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    /* avoid race condition where the first init chunk isn't there yet
-       and a non waiting get_chunk() is done (would return empty stream)*/
-    vlc_cond_wait( &p_sys->playback.wait, &p_sys->playback.lock );
-    vlc_mutex_unlock( &p_sys->playback.lock );
-
     return VLC_SUCCESS;
 }