From: Lennart Poettering Date: Wed, 12 Apr 2006 17:12:16 +0000 (+0000) Subject: protocol change: don't send stream buffer size in latency update. This data is redund... X-Git-Tag: 1.0_branch~3833 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77c2a1f561e8995ad62a38dfe1586577d5e93377;p=profile%2Fivi%2Fpulseaudio.git protocol change: don't send stream buffer size in latency update. This data is redundant, since it can be calculated from write_index - read_index anyway git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@685 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/polypcore/protocol-native.c b/src/polypcore/protocol-native.c index 51280c8..2aedd39 100644 --- a/src/polypcore/protocol-native.c +++ b/src/polypcore/protocol-native.c @@ -1060,7 +1060,6 @@ static void command_get_playback_latency(PA_GCC_UNUSED pa_pdispatch *pd, PA_GCC_ CHECK_VALIDITY(c->pstream, s->type == PLAYBACK_STREAM, tag, PA_ERR_NOENTITY); reply = reply_new(tag); - pa_tagstruct_put_usec(reply, pa_sink_input_get_latency(s->sink_input)); 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)); @@ -1091,7 +1090,6 @@ static void command_get_record_latency(PA_GCC_UNUSED pa_pdispatch *pd, PA_GCC_UN CHECK_VALIDITY(c->pstream, s, tag, PA_ERR_NOENTITY); reply = reply_new(tag); - pa_tagstruct_put_usec(reply, pa_source_output_get_latency(s->source_output)); 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);