pulse-server: PLAY_SAMPLE does not need a valid sink id or name

This commit is contained in:
Wim Taymans 2020-11-17 17:14:28 +01:00
parent 01b473e695
commit cd25a1e5e7

View file

@ -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, impl, client->name, commands[command].name, tag,
sink_index, sink_name, name); sink_index, sink_name, name);
if ((sink_index == SPA_ID_INVALID && sink_name == NULL) || if (sink_index != SPA_ID_INVALID && sink_name != NULL)
(sink_index != SPA_ID_INVALID && sink_name != NULL))
goto error_inval; goto error_inval;
if (sink_name != NULL) if (sink_name != NULL)