From cd25a1e5e744ec99475133c5520df4fa5cc0be5d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 17 Nov 2020 17:14:28 +0100 Subject: [PATCH] pulse-server: PLAY_SAMPLE does not need a valid sink id or name --- src/modules/module-protocol-pulse/pulse-server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 10b2ba106..94320ab79 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -2302,8 +2302,7 @@ static int do_play_sample(struct client *client, uint32_t command, uint32_t tag, impl, client->name, commands[command].name, tag, sink_index, sink_name, name); - if ((sink_index == SPA_ID_INVALID && sink_name == NULL) || - (sink_index != SPA_ID_INVALID && sink_name != NULL)) + if (sink_index != SPA_ID_INVALID && sink_name != NULL) goto error_inval; if (sink_name != NULL)