[vlc-commits] CUE: support Unix Line Endings
Jean-Baptiste Kempf
git at videolan.org
Fri Sep 16 16:00:08 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Sep 16 15:54:28 2011 +0200| [0d18d5644e7543a8d8e8bccb7f7ba4e18307bfb5] | committer: Jean-Baptiste Kempf
CUE: support Unix Line Endings
Close #5322
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d18d5644e7543a8d8e8bccb7f7ba4e18307bfb5
---
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