[vlc-commits] Playlist: fix regression on "rtsptext" case testing

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> | Tue Oct  8 23:50:30 2013 +0200| [8316bdc18be5dd299cba7a465ce1a44f12e1203e] | committer: Jean-Baptiste Kempf

Playlist: fix regression on "rtsptext" case testing

For some reasons, some .mov playlist use "rtsptext" instead of
"RTSPtext"

(cherry picked from commit 67def2888d6a8bb480129ade0a75c9b1a01f53c7)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=8316bdc18be5dd299cba7a465ce1a44f12e1203e
---

 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 8f07a475..c2e1e0f 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