From b95a51440b6378847c4ab5dd4cf9e96e18b5f241 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 19 Jan 2015 09:04:18 +0000 Subject: avoid aliasing global "spawn" method This makes debugging, grepping, and following code confusing at times and also unexpected breaks usage of the global "spawn" method. --- lib/dtas/player.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/dtas/player.rb') diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb index 002decf..dd037b0 100644 --- a/lib/dtas/player.rb +++ b/lib/dtas/player.rb @@ -348,7 +348,7 @@ class DTAS::Player # :nodoc: @sinks.each_value do |sink| sink.active or next next if sink.pid - @targets.concat(sink.spawn(@format)) + @targets.concat(sink.sink_spawn(@format)) end if @targets[0] @targets.sort_by! { |t| t.sink.prio } @@ -413,7 +413,7 @@ class DTAS::Player # :nodoc: dst = @sink_buf pending.dst_assoc(dst) - pending.spawn(@format, @rg, out: dst.wr, in: "/dev/null") + pending.src_spawn(@format, @rg, out: dst.wr, in: "/dev/null") # watch and restart on modifications pending.respond_to?(:watch_begin) and -- cgit v1.2.3-24-ge0c7