[vlc-commits] CUE: support Unix Line Endings
Jean-Baptiste Kempf
git at videolan.org
Fri Sep 16 15:55:59 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Sep 16 15:54:28 2011 +0200| [b98c02dabaa071070d9be16364582ab399185332] | committer: Jean-Baptiste Kempf
CUE: support Unix Line Endings
Close #5325
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b98c02dabaa071070d9be16364582ab399185332
---
share/lua/playlist/cue.lua | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/share/lua/playlist/cue.lua b/share/lua/playlist/cue.lua
index fe8dd86..b7f5078 100644
--- a/share/lua/playlist/cue.lua
+++ b/share/lua/playlist/cue.lua
@@ -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
More information about the vlc-commits
mailing list