[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/7] jackaudio: avoid that the client name contains the word (NULL
From: |
Gerd Hoffmann |
Subject: |
[PULL 4/7] jackaudio: avoid that the client name contains the word (NULL) |
Date: |
Thu, 17 Jun 2021 14:41:04 +0200 |
From: Volker RĂ¼melin <vr_qemu@t-online.de>
Currently with jackaudio client name and qemu guest name unset,
the JACK client names are out-(NULL) and in-(NULL). These names
are user visible in the patch bay. Replace the function call to
qemu_get_vm_name() with a call to audio_application_name() which
replaces NULL with "qemu" to have more descriptive names.
Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-Id: <20210517194604.2545-4-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
audio/jackaudio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/audio/jackaudio.c b/audio/jackaudio.c
index 3031c4e29bd4..e7de6d5433e9 100644
--- a/audio/jackaudio.c
+++ b/audio/jackaudio.c
@@ -26,7 +26,6 @@
#include "qemu/module.h"
#include "qemu/atomic.h"
#include "qemu/main-loop.h"
-#include "qemu-common.h"
#include "audio.h"
#define AUDIO_CAP "jack"
@@ -412,7 +411,7 @@ static int qjack_client_init(QJackClient *c)
snprintf(client_name, sizeof(client_name), "%s-%s",
c->out ? "out" : "in",
- c->opt->client_name ? c->opt->client_name : qemu_get_vm_name());
+ c->opt->client_name ? c->opt->client_name : audio_application_name());
if (c->opt->exact_name) {
options |= JackUseExactName;
--
2.31.1
- [PULL 0/7] Audio 20210617 patches, Gerd Hoffmann, 2021/06/17
- [PULL 2/7] paaudio: remove unused stream flags, Gerd Hoffmann, 2021/06/17
- [PULL 1/7] alsaaudio: remove #ifdef DEBUG to avoid bit rot, Gerd Hoffmann, 2021/06/17
- [PULL 3/7] audio: move code to audio/audio.c, Gerd Hoffmann, 2021/06/17
- [PULL 5/7] hw/audio/sb16: Avoid assertion by restricting I/O sampling rate range, Gerd Hoffmann, 2021/06/17
- [PULL 4/7] jackaudio: avoid that the client name contains the word (NULL),
Gerd Hoffmann <=
- [PULL 6/7] audio: Fix format specifications of debug logs, Gerd Hoffmann, 2021/06/17
- [PULL 7/7] coreaudio: Fix output stream format settings, Gerd Hoffmann, 2021/06/17
- Re: [PULL 0/7] Audio 20210617 patches, no-reply, 2021/06/17
- Re: [PULL 0/7] Audio 20210617 patches, Peter Maydell, 2021/06/18