[vlc-commits] Cue: support COMMENT
Jean-Baptiste Kempf
git at videolan.org
Tue May 24 17:06:46 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May 24 16:46:48 2011 +0200| [81f37f32669e78e63100940646d8a719bddff856] | committer: Jean-Baptiste Kempf
Cue: support COMMENT
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81f37f32669e78e63100940646d8a719bddff856
---
share/lua/playlist/cue.lua | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/share/lua/playlist/cue.lua b/share/lua/playlist/cue.lua
index 3b867e8..fe8dd86 100644
--- a/share/lua/playlist/cue.lua
+++ b/share/lua/playlist/cue.lua
@@ -66,6 +66,7 @@ function cue_track( global, track )
t.artist = track.performer or global.performer
t.genre = track.genre or global.genre
t.date = track.date or global.date
+ t.description = global.comment
t.tracknum = track.num
t.options = { ":start-time=" .. math.floor(track.index01) }
@@ -103,6 +104,8 @@ function parse()
data.genre = cue_string( value )
elseif( subcmd == "DATE" and value ) then
data.date = cue_string( value )
+ elseif( subcmd == "COMMENT" and value ) then
+ data.comment = cue_string( value )
end
elseif( cmd == "PERFORMER" and arg ) then
data.performer = cue_string( arg )
More information about the vlc-commits
mailing list