Skip to content

Commit 2833d69

Browse files
Volker Rümelinkraxel
Volker Rümelin
authored andcommitted
jackaudio: avoid that the client name contains the word (NULL)
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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent 37a54d0 commit 2833d69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

audio/jackaudio.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "qemu/module.h"
2727
#include "qemu/atomic.h"
2828
#include "qemu/main-loop.h"
29-
#include "qemu-common.h"
3029
#include "audio.h"
3130

3231
#define AUDIO_CAP "jack"
@@ -412,7 +411,7 @@ static int qjack_client_init(QJackClient *c)
412411

413412
snprintf(client_name, sizeof(client_name), "%s-%s",
414413
c->out ? "out" : "in",
415-
c->opt->client_name ? c->opt->client_name : qemu_get_vm_name());
414+
c->opt->client_name ? c->opt->client_name : audio_application_name());
416415

417416
if (c->opt->exact_name) {
418417
options |= JackUseExactName;

0 commit comments

Comments
 (0)