Commit 4786038b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

smooth: remove logical no-op

parent d8f4b5c3
...@@ -540,11 +540,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -540,11 +540,8 @@ static int Open( vlc_object_t *p_this )
s->pf_peek = Peek; s->pf_peek = Peek;
s->pf_control = Control; 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 ) ) if( vlc_clone( &p_sys->download.thread, sms_Thread, s, VLC_THREAD_PRIORITY_INPUT ) )
{ {
vlc_mutex_unlock( &p_sys->playback.lock );
SysCleanup( p_sys ); SysCleanup( p_sys );
vlc_mutex_destroy( &p_sys->lock ); vlc_mutex_destroy( &p_sys->lock );
vlc_cond_destroy( &p_sys->download.wait ); vlc_cond_destroy( &p_sys->download.wait );
...@@ -554,11 +551,6 @@ static int Open( vlc_object_t *p_this ) ...@@ -554,11 +551,6 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC; 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; return VLC_SUCCESS;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment