summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/protocol-native.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-07-23 13:40:23 +0200
committerLennart Poettering <lennart@poettering.net>2009-07-23 13:57:42 +0200
commit3b01d3a53f3b9261b30c1f7e5fe28d269c28cdf0 (patch)
treef85a3455e2e5e694a81d10696bc69c432e44a946 /src/pulsecore/protocol-native.c
parent41ad33dfe7334705939c9cf8f2e53f8ca1bf62ba (diff)
protocol-native: use the right samplerate
The render_memblockq is expressed in the sample_spec of the sink, not of the particular stream before resampling.
Diffstat (limited to 'src/pulsecore/protocol-native.c')
-rw-r--r--src/pulsecore/protocol-native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c
index 96184bd2..9a37c565 100644
--- a/src/pulsecore/protocol-native.c
+++ b/src/pulsecore/protocol-native.c
@@ -2550,7 +2550,7 @@ static void command_get_playback_latency(pa_pdispatch *pd, uint32_t command, uin
reply = reply_new(tag);
pa_tagstruct_put_usec(reply,
s->current_sink_latency +
- pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sample_spec));
+ pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sink->sample_spec));
pa_tagstruct_put_usec(reply, 0);
pa_tagstruct_put_boolean(reply,
s->playing_for > 0 &&