]> git.sesse.net Git - vlc/commitdiff
Cue: don't round the start values
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 30 Aug 2014 05:01:00 +0000 (07:01 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 30 Aug 2014 05:01:38 +0000 (07:01 +0200)
Close #11740

share/lua/playlist/cue.lua

index dbfd83c3e60233500e8fedcf7eedae8808afe715..1b489495fde06315559d1678765047a01aab30cc 100644 (file)
@@ -75,7 +75,7 @@ function cue_track( global, track )
     t.date = track.date or global.date
     t.description = global.comment
     t.tracknum = track.num
-    t.options = { ":start-time=" .. math.floor(track.index01) }
+    t.options = { ":start-time=" .. track.index01}
 
     return t
 end
@@ -85,7 +85,7 @@ function cue_append( tracks, global, track )
     if( t ~= nil ) then
         if( #tracks > 0 ) then
             local prev = tracks[#tracks]
-            table.insert( prev.options, ":stop-time=" .. math.floor(track.index01) )
+            table.insert( prev.options, ":stop-time=" .. track.index01)
         end
         table.insert( tracks, t )
     end