From ef150bfb3ce760596f14c9ce20baa64484113ab7 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 9 Feb 2021 10:26:14 +0100 Subject: [PATCH] jack: return an empty session command We need to return an empty message because apps don't expect a NULL pointer. --- pipewire-jack/src/pipewire-jack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c index 14312f8c9..df70bb8f0 100644 --- a/pipewire-jack/src/pipewire-jack.c +++ b/pipewire-jack/src/pipewire-jack.c @@ -4743,9 +4743,11 @@ jack_session_command_t *jack_session_notify ( const char *path) { struct client *c = (struct client *) client; + jack_session_command_t *cmds; spa_return_val_if_fail(c != NULL, NULL); pw_log_warn("not implemented"); - return NULL; + cmds = calloc(1, sizeof(jack_session_command_t)); + return cmds; } SPA_EXPORT