From fe577e8d5649521954bb9d73f99dca1b35ce384c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 6 Jan 2015 10:01:46 +0000 Subject: player: enqueued commands cannot use bypass We cannot specify an audio format for bypass mode, so inherit the last one we used and hope it works. --- lib/dtas/player.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dtas') diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb index ea48926..002decf 100644 --- a/lib/dtas/player.rb +++ b/lib/dtas/player.rb @@ -400,7 +400,7 @@ class DTAS::Player # :nodoc: msg = %W(command #{pending.command_string}) end - unless @bypass.empty? + if ! @bypass.empty? && pending.respond_to?(:format) new_fmt = bypass_match!(@format.dup, pending.format) if new_fmt != @format stop_sinks # we may fail to start below -- cgit v1.2.3-24-ge0c7