Commit 4b94eddd authored by Frédéric Yhuel's avatar Frédéric Yhuel Committed by Jean-Baptiste Kempf

stream_filter: smooth: fix segfault

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 39f6a7cf
......@@ -756,7 +756,11 @@ static unsigned int sms_Read( stream_t *s, uint8_t *p_read, unsigned int i_read
else
{
vlc_mutex_lock( &p_sys->lock );
gotoNextChunk( p_sys );
if( gotoNextChunk( p_sys ) == NULL )
{
vlc_mutex_unlock( &p_sys->lock );
return 0;
}
vlc_mutex_unlock( &p_sys->lock );
}
......
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