dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] player: "tl goto" starts playback if idle (and not paused)


From: Eric Wong
Subject: [PATCH] player: "tl goto" starts playback if idle (and not paused)
Date: Mon, 30 Sep 2013 00:28:48 +0000

Using "tl goto" implies we start playback of the player is idle.
---
 lib/dtas/player/client_handler.rb | 3 +++
 1 file changed, 3 insertions(+)

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")
-- 
1.8.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]