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-simple.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-simple.c')
-rw-r--r-- | src/pulsecore/protocol-simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/protocol-simple.c b/src/pulsecore/protocol-simple.c index fb2e5648..77277e13 100644 --- a/src/pulsecore/protocol-simple.c +++ b/src/pulsecore/protocol-simple.c @@ -574,7 +574,7 @@ void pa_simple_protocol_connect(pa_simple_protocol *p, pa_iochannel *io, pa_simp pa_iochannel_socket_set_rcvbuf(io, l); - 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); } |