[vlc-commits] Smooth: check FromCharset return
Jean-Baptiste Kempf
git at videolan.org
Tue Oct 8 23:55:25 CEST 2013
vlc/vlc-2.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Oct 6 18:15:49 2013 +0200| [93f3bda2e50a017e913caeb0e974fad1c4f7d566] | committer: Jean-Baptiste Kempf
Smooth: check FromCharset return
(cherry picked from commit daad562cdfbefcab375ab100e3193896fef16dc7)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=93f3bda2e50a017e913caeb0e974fad1c4f7d566
---
modules/stream_filter/smooth/smooth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/stream_filter/smooth/smooth.c b/modules/stream_filter/smooth/smooth.c
index 29f54fb..5e2c9fd 100644
--- a/modules/stream_filter/smooth/smooth.c
+++ b/modules/stream_filter/smooth/smooth.c
@@ -103,7 +103,7 @@ static bool isSmoothStreaming( stream_t *s )
}
peeked = FromCharset( encoding, peeked, 512 );
- if( strstr( peeked, needle ) != NULL )
+ if( peeked != NULL && strstr( peeked, needle ) != NULL )
ret = true;
}
free( peeked );
More information about the vlc-commits
mailing list