From nobody Tue Feb 10 02:42:36 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1665646985; cv=none; d=zohomail.com; s=zohoarc; b=lLHBnN+Q3E3T20QhYR8mAbNAcdzedL6kRX9Bp9JiHXvDR7iAGZWn9XYwLVdqH/migDf6+sIaGGhAuRr0kMJIwjoYZXPbSwXS7l83mOoq4H5OeAb89fSuLfAm/MkeQMTHpI7nHmeVnotBXOCI7mwBQmUWa6KmySFfP7gkG9irArU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665646985; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8KJpmXXivAzMAj+7n3xd/6yospCM+cYvTpxf5uK4ct8=; b=YhyxvO5DyLZ/dWjhpk7m6BKAQFymymCQE5HrMMX+lw0mnlTewEHtwyOj50YttfPDX/xhxyZCztNRKVBQp08TL5+tX98bMbQE5cnFnco1cvdgJ0wl2utdmHWOLqPPKz0a6sgGPaqfU5kxGTEvesQZ+LChsRcfgFxic6dT4ibhh+M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1665646985558190.23044656023092; Thu, 13 Oct 2022 00:43:05 -0700 (PDT) Received: from localhost ([::1]:58270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oisrw-0000RI-C8 for importer@patchew.org; Thu, 13 Oct 2022 03:43:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ois5a-0005S1-6B for qemu-devel@nongnu.org; Thu, 13 Oct 2022 02:53:08 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:32118) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ois5Y-0006pg-Oh for qemu-devel@nongnu.org; Thu, 13 Oct 2022 02:53:05 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-347-b6rzuUJ3PrOgERbw299yJQ-1; Thu, 13 Oct 2022 02:53:00 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C2E5A1871D9C; Thu, 13 Oct 2022 06:52:54 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.195.183]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 65F594B3FEC; Thu, 13 Oct 2022 06:52:46 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id AA0001800917; Thu, 13 Oct 2022 08:52:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665643984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8KJpmXXivAzMAj+7n3xd/6yospCM+cYvTpxf5uK4ct8=; b=Xhi5y1rrEWn2wiGIGaIU14JonRRIMthsHGxu99tvwW+ikfebc8c9kwSqC5aT21G6eIF1l5 qEcu168XNV/M68WdLitfQLRLtCSMWyITiBx++9/Auck04AwZJzdkyW0HBclwF9RmjLxnDh b3DvJFdM9/++Bz+FbazlTP2VI+jPMRE= X-MC-Unique: b6rzuUJ3PrOgERbw299yJQ-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Cc: David Hildenbrand , Gerd Hoffmann , Kashyap Chamarthy , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Markus Armbruster , Eric Auger , Christian Schoenebeck , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Marcel Apfelbaum , "Michael S. Tsirkin" , Eric Blake , =?UTF-8?q?Volker=20R=C3=BCmelin?= Subject: [PULL 07/26] spiceaudio: update comment Date: Thu, 13 Oct 2022 08:52:05 +0200 Message-Id: <20221013065224.1864145-8-kraxel@redhat.com> In-Reply-To: <20221013065224.1864145-1-kraxel@redhat.com> References: <20221013065224.1864145-1-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1665646987903100001 From: Volker R=C3=BCmelin Replace a comment with a question with the answer. Signed-off-by: Volker R=C3=BCmelin Reviewed-by: Marc-Andr=C3=A9 Lureau Message-Id: <20220923183640.8314-7-vr_qemu@t-online.de> Signed-off-by: Gerd Hoffmann --- audio/spiceaudio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/audio/spiceaudio.c b/audio/spiceaudio.c index 22892a7b9d42..f52f3a8bbb66 100644 --- a/audio/spiceaudio.c +++ b/audio/spiceaudio.c @@ -242,7 +242,10 @@ static size_t line_in_read(HWVoiceIn *hw, void *buf, s= ize_t len) uint64_t to_read =3D audio_rate_get_bytes(&hw->info, &in->rate, len) >= > 2; size_t ready =3D spice_server_record_get_samples(&in->sin, buf, to_rea= d); =20 - /* XXX: do we need this? */ + /* + * If the client didn't send new frames, it most likely disconnected. + * Generate silence in this case to avoid a stalled audio stream. + */ if (ready =3D=3D 0) { memset(buf, 0, to_read << 2); ready =3D to_read; --=20 2.37.3