about summary refs log tree commit homepage
path: root/lib/dtas/player.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-09 08:05:18 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-09 08:05:18 +0000
commitddb1f774839b7935968fe86a937dd305a9233d89 (patch)
tree3082cb8836e060d19d039dccdac89720ccae33e7 /lib/dtas/player.rb
parent72bdee181ad5d95f1925d3abedd7f860101a75d3 (diff)
downloaddtas-ddb1f774839b7935968fe86a937dd305a9233d89.tar.gz
This should make implementing SetPosition in the MPRIS 2.0 spec
possible.
Diffstat (limited to 'lib/dtas/player.rb')
-rw-r--r--lib/dtas/player.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb
index 5e78d8e..9ab45fc 100644
--- a/lib/dtas/player.rb
+++ b/lib/dtas/player.rb
@@ -353,9 +353,9 @@ class DTAS::Player # :nodoc:
 
     # don't get stuck in an infinite loop if @tl.repeat==true and we can't
     # decode anything (FS errors, sox uninstalled, etc...)
-    while path = @tl.advance_track(false)
+    while path_off = @tl.advance_track(false)
       @sources.each do |src|
-        rv = src.try(path) and return rv
+        rv = src.try(*path_off) and return rv
       end
     end