]> git.sesse.net Git - vlc/commitdiff
CUE: support Unix Line Endings
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 16 Sep 2011 13:54:28 +0000 (15:54 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 16 Sep 2011 13:59:56 +0000 (15:59 +0200)
Close #5322

share/lua/playlist/cue.lua

index fe8dd8602e7d331208952d6694983bb96cb385cc..b7f5078ebec25e2a99a58861fab69fdac68e9ccc 100644 (file)
@@ -27,7 +27,10 @@ function probe()
        header = vlc.peek( 2048 )
        return string.match( header, "FILE.*WAVE%s[\r\n]+" ) or
               string.match( header, "FILE.*AIFF%s[\r\n]+" ) or
-              string.match( header, "FILE.*MP3%s[\r\n]+" )
+              string.match( header, "FILE.*MP3%s[\r\n]+" ) or
+              string.match( header, "FILE.*WAVE%s*[\n]+" ) or
+              string.match( header, "FILE.*AIFF%s*[\n]+" ) or
+              string.match( header, "FILE.*MP3%s*[\n]+" )
 end
 
 -- Helpers