From e149f640598edaf1fdf6ba838ac469bd85dc78ce Mon Sep 17 00:00:00 2001
From: Wim Taymans <wim.taymans@collabora.co.uk>
Date: Thu, 23 Jul 2009 13:40:23 +0200
Subject: [PATCH] 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.
---
src/pulsecore/protocol-native.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c
index 96184bd..9a37c56 100644
|
a
|
b
|
|
| 2550 | 2550 | reply = reply_new(tag); |
| 2551 | 2551 | pa_tagstruct_put_usec(reply, |
| 2552 | 2552 | s->current_sink_latency + |
| 2553 | | pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sample_spec)); |
| | 2553 | pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sink->sample_spec)); |
| 2554 | 2554 | pa_tagstruct_put_usec(reply, 0); |
| 2555 | 2555 | pa_tagstruct_put_boolean(reply, |
| 2556 | 2556 | s->playing_for > 0 && |