[vlc-commits] Playlist: fix regression on "rtsptext" case testing
Jean-Baptiste Kempf
git at videolan.org
Tue Oct 8 23:52:32 CEST 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct 8 23:50:30 2013 +0200| [67def2888d6a8bb480129ade0a75c9b1a01f53c7] | committer: Jean-Baptiste Kempf
Playlist: fix regression on "rtsptext" case testing
For some reasons, some .mov playlist use "rtsptext" instead of
"RTSPtext"
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=67def2888d6a8bb480129ade0a75c9b1a01f53c7
---
modules/demux/playlist/m3u.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index 11e5534..58f6006 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -95,7 +95,7 @@ int Import_M3U( vlc_object_t *p_this )
p_peek += offset;
- if( !memcmp( p_peek, "RTSPtext", 8 ) ) /* QuickTime */
+ if( !strncasecmp( (const char *)p_peek, "RTSPtext", 8 ) ) /* QuickTime */
pf_dup = CheckUnicode; /* UTF-8 */
else
if( !memcmp( p_peek, "#EXTM3U", 7 ) )
More information about the vlc-commits
mailing list