[vlc-commits] smooth: remove logical no-op
Rémi Denis-Courmont
git at videolan.org
Thu Jul 9 18:33:20 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 9 18:46:14 2015 +0300| [4786038bde20859c9fc68cfc5c8d59b5e9f27e40] | committer: Rémi Denis-Courmont
smooth: remove logical no-op
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4786038bde20859c9fc68cfc5c8d59b5e9f27e40
---
modules/stream_filter/smooth/smooth.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/modules/stream_filter/smooth/smooth.c b/modules/stream_filter/smooth/smooth.c
index ddcbb63..d548bae 100644
--- a/modules/stream_filter/smooth/smooth.c
+++ b/modules/stream_filter/smooth/smooth.c
@@ -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;
}
More information about the vlc-commits
mailing list