[vlc-commits] stream_filter: smooth: fix segfault
Frédéric Yhuel
git at videolan.org
Mon Dec 1 11:22:43 CET 2014
vlc | branch: master | Frédéric Yhuel <yhuelf at gmail.com> | Sun Nov 30 21:17:40 2014 +0100| [4b94edddcad21a2702814550e46b1a0ebac02304] | committer: Jean-Baptiste Kempf
stream_filter: smooth: fix segfault
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b94edddcad21a2702814550e46b1a0ebac02304
---
modules/stream_filter/smooth/smooth.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/stream_filter/smooth/smooth.c b/modules/stream_filter/smooth/smooth.c
index dfd5dfb..07a35e9 100644
--- a/modules/stream_filter/smooth/smooth.c
+++ b/modules/stream_filter/smooth/smooth.c
@@ -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 );
}
More information about the vlc-commits
mailing list