From 856b1c7064155e59c84942a7e8cd36128b6be34e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 6 Sep 2015 23:15:36 +0000 Subject: use a common /dev/null This allows us to avoid wasting time reopening the same device over and over again. --- lib/dtas/player.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dtas/player.rb') diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb index cdf1265..a102618 100644 --- a/lib/dtas/player.rb +++ b/lib/dtas/player.rb @@ -426,7 +426,7 @@ class DTAS::Player # :nodoc: dst = @sink_buf pending.dst_assoc(dst) - pending.src_spawn(@format, @rg, out: dst.wr, in: "/dev/null") + pending.src_spawn(@format, @rg, out: dst.wr, in: DTAS.null) # watch and restart on modifications pending.respond_to?(:watch_begin) and -- cgit v1.2.3-24-ge0c7