about summary refs log tree commit homepage
path: root/lib/dtas/player.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-01-11 18:21:04 +0000
committerEric Wong <e@80x24.org>2022-01-21 20:29:57 +0000
commitbf9787ac517fe19af5fd6ba918a66b220fcbc923 (patch)
treee30cf4a74c599bb8037f41340fc1ed8800d8af4c /lib/dtas/player.rb
parent88a8d4793473259b392241f1e2d20d39bd96b214 (diff)
downloaddtas-bf9787ac517fe19af5fd6ba918a66b220fcbc923.tar.gz
This ought to save some memory for dtas-player and
dtas-readahead users with multiple instances of the same
track(s) on their track list.
Diffstat (limited to 'lib/dtas/player.rb')
-rw-r--r--lib/dtas/player.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb
index ff7440f..243f0b0 100644
--- a/lib/dtas/player.rb
+++ b/lib/dtas/player.rb
@@ -208,13 +208,13 @@ class DTAS::Player # :nodoc:
     command = msg.shift
     case command
     when "enq"
-      enq_handler(io, msg[0])
+      enq_handler(io, -msg[0])
     when "enq-cmd"
-      enq_handler(io, { "command" => msg[0]})
+      enq_handler(io, { "command" => -msg[0]})
     when "pause", "play", "play_pause"
       play_pause_handler(io, command)
     when "pwd"
-      io.emit(Dir.pwd)
+      io.emit(-Dir.pwd)
     else
       m = "dpc_#{command.tr('-', '_')}"
       __send__(m, io, msg) if respond_to?(m)