summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-02-23 23:55:05 +0100
committerLennart Poettering <lennart@poettering.net>2009-02-23 23:55:05 +0100
commite0b550710a6d8f5af5209d319de3694243f87b8f (patch)
tree9e43f396de31063443c9d2ae77f69ef94a53e96f /src/pulsecore
parent385a560c823c022c9755915e857f079c217f8ee9 (diff)
it's probably more appropriate to return the configured latency instead of the actual latency
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/protocol-esound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/protocol-esound.c b/src/pulsecore/protocol-esound.c
index 0e3f5645..7101aae3 100644
--- a/src/pulsecore/protocol-esound.c
+++ b/src/pulsecore/protocol-esound.c
@@ -569,7 +569,7 @@ static int esd_proto_get_latency(connection *c, esd_proto_t request, const void
if (!(sink = pa_namereg_get(c->protocol->core, c->options->default_sink, PA_NAMEREG_SINK)))
latency = 0;
else {
- double usec = (double) pa_sink_get_latency(sink);
+ double usec = (double) pa_sink_get_requested_latency(sink);
latency = (int) ((usec*44100)/1000000);
}