about summary refs log tree commit homepage
path: root/lib/dtas
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-01-28 08:25:42 +0000
committerEric Wong <e@80x24.org>2015-01-28 08:25:42 +0000
commit9d63755abd4774c57f6d2d4cf4b3643b5877737c (patch)
treef7f68279357bbcaa7764bfa5c12350bee9b64784 /lib/dtas
parent37eae22446feb5a805d9cd59f6ad54362829189f (diff)
downloaddtas-9d63755abd4774c57f6d2d4cf4b3643b5877737c.tar.gz
Oops, introduced in the previous commit:
commit 37eae22446feb5a805d9cd59f6ad54362829189f
(player: support the "trim" parameter)
Diffstat (limited to 'lib/dtas')
-rw-r--r--lib/dtas/player.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb
index 2920dcd..ea04dca 100644
--- a/lib/dtas/player.rb
+++ b/lib/dtas/player.rb
@@ -378,8 +378,9 @@ class DTAS::Player # :nodoc:
 
     # keep going down the list until we find something
     while source_spec = @queue.shift
+      path, off = source_spec
       @sources.each do |src|
-        rv = src.try(file, offset, @trim) and return rv
+        rv = src.try(path, off, @trim) and return rv
       end
     end