diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-04-07 00:23:38 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-04-07 00:23:38 +0000 |
commit | cc302f2d17b172bec60b25d549a77b1cb3d17d99 (patch) | |
tree | f7ab7d0d94fd1eb8df2b29d9a0c8d410f089c0c9 /src | |
parent | dd9605ba1f29f959e5d5b0c6f80cec4dcb1574db (diff) |
remove queue length field from latency request (server side)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@647 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r-- | src/polypcore/protocol-native.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/polypcore/protocol-native.c b/src/polypcore/protocol-native.c index 68dc6366..763873c2 100644 --- a/src/polypcore/protocol-native.c +++ b/src/polypcore/protocol-native.c @@ -1064,10 +1064,8 @@ static void command_get_playback_latency(PA_GCC_UNUSED pa_pdispatch *pd, PA_GCC_ pa_tagstruct_put_usec(reply, pa_sink_get_latency(s->sink_input->sink)); pa_tagstruct_put_usec(reply, 0); pa_tagstruct_put_boolean(reply, pa_memblockq_is_readable(s->memblockq)); - pa_tagstruct_putu32(reply, pa_memblockq_get_length(s->memblockq)); pa_tagstruct_put_timeval(reply, &tv); - pa_gettimeofday(&now); - pa_tagstruct_put_timeval(reply, &now); + pa_tagstruct_put_timeval(reply, pa_gettimeofday(&now)); pa_tagstruct_puts64(reply, pa_memblockq_get_write_index(s->memblockq)); pa_tagstruct_puts64(reply, pa_memblockq_get_read_index(s->memblockq)); pa_pstream_send_tagstruct(c->pstream, reply); @@ -1097,10 +1095,8 @@ static void command_get_record_latency(PA_GCC_UNUSED pa_pdispatch *pd, PA_GCC_UN pa_tagstruct_put_usec(reply, s->source_output->source->monitor_of ? pa_sink_get_latency(s->source_output->source->monitor_of) : 0); pa_tagstruct_put_usec(reply, pa_source_get_latency(s->source_output->source)); pa_tagstruct_put_boolean(reply, 0); - pa_tagstruct_putu32(reply, pa_memblockq_get_length(s->memblockq)); pa_tagstruct_put_timeval(reply, &tv); - pa_gettimeofday(&now); - pa_tagstruct_put_timeval(reply, &now); + pa_tagstruct_put_timeval(reply, pa_gettimeofday(&now)); pa_tagstruct_puts64(reply, pa_memblockq_get_write_index(s->memblockq)); pa_tagstruct_puts64(reply, pa_memblockq_get_read_index(s->memblockq)); pa_pstream_send_tagstruct(c->pstream, reply); |