pulse-server: pending-sample: set replied flag on error

Set the `pending_sample::replied` flag when an error reply
is sent to the client.
This commit is contained in:
Barnabás Pőcze 2023-05-07 16:06:16 +02:00 committed by Wim Taymans
parent dd7c47bb3d
commit edad053911

View file

@ -67,10 +67,12 @@ static void sample_play_done(void *data, int res)
struct client *client = ps->client; struct client *client = ps->client;
struct impl *impl = client->impl; struct impl *impl = client->impl;
if (res < 0) if (res < 0) {
reply_error(client, COMMAND_PLAY_SAMPLE, ps->tag, res); reply_error(client, COMMAND_PLAY_SAMPLE, ps->tag, res);
else ps->replied = true;
pw_log_info("[%s] PLAY_SAMPLE done tag:%u", client->name, ps->tag); }
pw_log_info("[%s] PLAY_SAMPLE done tag:%u result:%d", client->name, ps->tag, res);
pw_work_queue_add(impl->work_queue, ps, 0, pw_work_queue_add(impl->work_queue, ps, 0,
on_sample_done, client); on_sample_done, client);