[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] player: fix queue skipping on player errors
From: |
Eric Wong |
Subject: |
[PATCH] player: fix queue skipping on player errors |
Date: |
Wed, 28 Jan 2015 10:02:42 +0000 |
Oops, introduced in the previous commit:
commit 37eae22446feb5a805d9cd59f6ad54362829189f
(player: support the "trim" parameter)
---
lib/dtas/player.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
--
EW