mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-20 00:11:31 +00:00
pulse-server: send the drained event only once
Only send the drained command once. pw-stream keeps on emitting drained events as longs as the stream is drained.
This commit is contained in:
parent
6ca297797f
commit
0cccff517b
|
@ -1300,10 +1300,13 @@ static void stream_process(void *data)
|
||||||
static void stream_drained(void *data)
|
static void stream_drained(void *data)
|
||||||
{
|
{
|
||||||
struct stream *stream = data;
|
struct stream *stream = data;
|
||||||
pw_log_info("%p: [%s] drained channel:%u", stream,
|
if (stream->drain_tag != 0) {
|
||||||
stream->client->name, stream->channel);
|
pw_log_info("%p: [%s] drained channel:%u tag:%d", stream,
|
||||||
reply_simple_ack(stream->client, stream->drain_tag);
|
stream->client->name, stream->channel,
|
||||||
stream->drain_tag = 0;
|
stream->drain_tag);
|
||||||
|
reply_simple_ack(stream->client, stream->drain_tag);
|
||||||
|
stream->drain_tag = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct pw_stream_events stream_events =
|
static const struct pw_stream_events stream_events =
|
||||||
|
|
Loading…
Reference in a new issue