From 1a0a4247b8031ec85536f547d2a66fa031586723 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Sep 2013 00:20:42 +0000 Subject: player: "tl goto" starts playback if idle (and not paused) Using "tl goto" implies we start playback of the player is idle. --- lib/dtas/player/client_handler.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/dtas/player') diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb index a44c1b7..91dfada 100644 --- a/lib/dtas/player/client_handler.rb +++ b/lib/dtas/player/client_handler.rb @@ -585,6 +585,9 @@ module DTAS::Player::ClientHandler # :nodoc: offset = msg.shift # may be nil if @tl.go_to(track_id.to_i, offset) _tl_skip + if !(@current || @queue[0] || @paused) + next_source(_next) + end io.emit("OK") else io.emit("MISSING") -- cgit v1.2.3-24-ge0c7