From ddb1f774839b7935968fe86a937dd305a9233d89 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Sep 2013 08:05:18 +0000 Subject: player: "tl goto" takes optional offset arg in HHMMSS.SUBSEC This should make implementing SetPosition in the MPRIS 2.0 spec possible. --- lib/dtas/player.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/dtas/player.rb') 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 -- cgit v1.2.3-24-ge0c7