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-30 00:20:42 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-30 00:20:42 +0000
commit1a0a4247b8031ec85536f547d2a66fa031586723 (patch)
tree82e379e2db8380c822808c0c48dbc2e3974e7a9a /lib/dtas/player/client_handler.rb
parent632b3d37736ce0df4f74edb2cdcbb88db4c9e975 (diff)
downloaddtas-1a0a4247b8031ec85536f547d2a66fa031586723.tar.gz
Using "tl goto" implies we start playback of the player is idle.
Diffstat (limited to 'lib/dtas/player/client_handler.rb')
-rw-r--r--lib/dtas/player/client_handler.rb3
1 files changed, 3 insertions, 0 deletions
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")