diff options
| author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-11-10 13:21:55 +0100 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2009-11-11 05:27:04 +0100 | 
| commit | 9ad567167ef6abf4598a83edabf4f6aa9642d86f (patch) | |
| tree | 05876eba4d1ff1b1e3ee1fbf3ee4d2976080ced0 | |
| parent | 409a9d01cd545b5b9c030785d0c68fc3c69dfc9b (diff) | |
protocol: use the right sample rate for sources
Use the correct sample rate for reporting about the timing.
| -rw-r--r-- | 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 010420ef..6e357624 100644 --- a/src/pulsecore/protocol-native.c +++ b/src/pulsecore/protocol-native.c @@ -2620,7 +2620,7 @@ static void command_get_record_latency(pa_pdispatch *pd, uint32_t command, uint3      pa_tagstruct_put_usec(reply, s->current_monitor_latency);      pa_tagstruct_put_usec(reply,                            s->current_source_latency + -                          pa_bytes_to_usec(s->on_the_fly_snapshot, &s->source_output->sample_spec)); +                          pa_bytes_to_usec(s->on_the_fly_snapshot, &s->source_output->source->sample_spec));      pa_tagstruct_put_boolean(reply,                               pa_source_get_state(s->source_output->source) == PA_SOURCE_RUNNING &&                               pa_source_output_get_state(s->source_output) == PA_SOURCE_OUTPUT_RUNNING); | 
