[vlc-commits] Smooth: check FromCharset return
Jean-Baptiste Kempf
git at videolan.org
Sun Oct 6 18:16:27 CEST 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Oct 6 18:15:49 2013 +0200| [daad562cdfbefcab375ab100e3193896fef16dc7] | committer: Jean-Baptiste Kempf
Smooth: check FromCharset return
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=daad562cdfbefcab375ab100e3193896fef16dc7
---
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