diff options
author | Eric Wong <e@80x24.org> | 2015-01-06 10:01:46 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2015-01-06 10:02:36 +0000 |
commit | fe577e8d5649521954bb9d73f99dca1b35ce384c (patch) | |
tree | db6c0d7d2843e24a870ee3d55c008d8a09c9cf38 /lib | |
parent | 9827aa7e58310ee2589b443ccc181a25731ae9c8 (diff) | |
download | dtas-fe577e8d5649521954bb9d73f99dca1b35ce384c.tar.gz |
We cannot specify an audio format for bypass mode, so inherit the last one we used and hope it works.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dtas/player.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |