diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-23 00:48:35 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-23 01:24:01 +0100 |
commit | c97013109494f9bc977db38d6ae4e972e59574f4 (patch) | |
tree | cd0f745529b382d3bd795521a3005eba5280b14a /src/pulsecore/protocol-esound.c | |
parent | dbdc666fb6cc2719fa21c346300b87705e9fa1f3 (diff) |
esd,simple: use pa_memblockq_pop_missing()
We need to use pa_memblockq_pop_missing() for all request handling,
including the initial request, because otherwise the counters will be
stay off during the entire runtime.
This should fix:
https://bugzilla.redhat.com/show_bug.cgi?id=559467
Diffstat (limited to 'src/pulsecore/protocol-esound.c')
-rw-r--r-- | src/pulsecore/protocol-esound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/protocol-esound.c b/src/pulsecore/protocol-esound.c index be205c20..045c5c95 100644 --- a/src/pulsecore/protocol-esound.c +++ b/src/pulsecore/protocol-esound.c @@ -462,7 +462,7 @@ static int esd_proto_stream_play(connection *c, esd_proto_t request, const void c->protocol->n_player++; - pa_atomic_store(&c->playback.missing, (int) pa_memblockq_missing(c->input_memblockq)); + pa_atomic_store(&c->playback.missing, (int) pa_memblockq_pop_missing(c->input_memblockq)); pa_sink_input_put(c->sink_input); |