diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-04-14 01:03:10 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-04-14 01:03:10 +0200 |
commit | 4ee4a5561767fb96b2e98b9daa79efa58e357595 (patch) | |
tree | ac1437acd94fa1d0b0f0f9688a13b8e9ae3030b7 /src/pulsecore/sink-input.c | |
parent | 16324fc7be0f915a75ec5622dcaecbbc3e9e6d41 (diff) |
core: use pa_{source|sink}_get_latency_within_thread() at one more place
Diffstat (limited to 'src/pulsecore/sink-input.c')
-rw-r--r-- | src/pulsecore/sink-input.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index 65f1fd5e..0229918c 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -1362,12 +1362,9 @@ int pa_sink_input_process_msg(pa_msgobject *o, int code, void *userdata, int64_t case PA_SINK_INPUT_MESSAGE_GET_LATENCY: { pa_usec_t *r = userdata; - pa_usec_t sink_usec = 0; r[0] += pa_bytes_to_usec(pa_memblockq_get_length(i->thread_info.render_memblockq), &i->sink->sample_spec); - - if (i->sink->parent.process_msg(PA_MSGOBJECT(i->sink), PA_SINK_MESSAGE_GET_LATENCY, &sink_usec, 0, NULL) >= 0) - r[1] += sink_usec; + r[1] += pa_sink_get_latency_within_thread(i->sink); return 0; } |