about summary refs log tree commit homepage
path: root/lib/dtas/player/client_handler.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/client_handler.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/client_handler.rb')
-rw-r--r--lib/dtas/player/client_handler.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb
index 33cae05..c7dd31d 100644
--- a/lib/dtas/player/client_handler.rb
+++ b/lib/dtas/player/client_handler.rb
@@ -571,7 +571,8 @@ module DTAS::Player::ClientHandler # :nodoc:
       io.emit(@tl.tracks.map! { |i| i.to_s }.join(' '))
     when "goto"
       track_id = msg.shift or return io.emit("ERR track_id not specified")
-      if @tl.go_to(track_id.to_i)
+      offset = msg.shift # may be nil
+      if @tl.go_to(track_id.to_i, offset)
         _tl_skip
         io.emit("OK")
       else