From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 208.118.235.0/24 X-Spam-Status: No, score=-1.9 required=3.0 tests=AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: dtas-all@80x24.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 36F4A1F489 for ; Sat, 17 Jan 2015 11:49:39 +0000 (UTC) Received: from localhost ([::1]:58903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCRso-0003HE-ML for dtas-all@80x24.org; Sat, 17 Jan 2015 06:49:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCRsm-0003Gi-Mm for dtas-all@nongnu.org; Sat, 17 Jan 2015 06:49:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCRsl-0006qv-Tb for dtas-all@nongnu.org; Sat, 17 Jan 2015 06:49:36 -0500 Received: from dcvr.yhbt.net ([64.71.152.64]:45033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCRsl-0006q2-ON for dtas-all@nongnu.org; Sat, 17 Jan 2015 06:49:35 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CF5501F459; Sat, 17 Jan 2015 11:49:29 +0000 (UTC) From: Eric Wong To: Subject: [PATCH 3/5] player: enqueued commands cannot use bypass Date: Sat, 17 Jan 2015 11:49:20 +0000 Message-Id: <1421495362-31430-4-git-send-email-e@80x24.org> X-Mailer: git-send-email 2.3.0.rc0.45.ga7910d6 In-Reply-To: <1421495362-31430-1-git-send-email-e@80x24.org> References: <1421495362-31430-1-git-send-email-e@80x24.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.71.152.64 Cc: e@80x24.org X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+dtas-all=80x24.org@nongnu.org Sender: dtas-all-bounces+dtas-all=80x24.org@nongnu.org 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(-) 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 -- EW