about summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-02 23:13:46 +0000
committerEric Wong <e@80x24.org>2019-01-02 23:13:46 +0000
commita11b5acf4d9fc7e49c04cd03d3136d1a1325ac4c (patch)
tree359a8d44884fc1db9cf6ef7d3a17040f9731269a
parentc77955f92628b5125292f098470d9f701fa1c490 (diff)
This fixes hanging when using a single audio output for
Linux users using splice.
-rw-r--r--lib/dtas/buffer/splice.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/buffer/splice.rb b/lib/dtas/buffer/splice.rb
index c6c0ee2..281ecfd 100644
--- a/lib/dtas/buffer/splice.rb
+++ b/lib/dtas/buffer/splice.rb
@@ -32,7 +32,7 @@ module DTAS::Buffer::Splice # :nodoc:
   def broadcast_one(targets, limit = nil)
     # single output is always non-blocking
     limit ||= MAX_AT_ONCE_1
-    s = SleepyPenguin.splice(@to_io, targets[0], limit, F_MOVE, TRY)
+    s = SleepyPenguin.splice(@to_io, targets[0], limit, F_MOVE|F_NONBLOCK, TRY)
     if Symbol === s
       targets # our one and only target blocked on write
     else