diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-09 08:05:18 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-09 08:05:18 +0000 |
commit | ddb1f774839b7935968fe86a937dd305a9233d89 (patch) | |
tree | 3082cb8836e060d19d039dccdac89720ccae33e7 /lib/dtas/player/client_handler.rb | |
parent | 72bdee181ad5d95f1925d3abedd7f860101a75d3 (diff) | |
download | dtas-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.rb | 3 |
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 |