From: Colin Guthrie Date: Sat, 11 Oct 2008 17:20:06 +0000 (+0100) Subject: Fix two typos that broke tunnels X-Git-Tag: submit/2.0-panda/20130828.192557~2583 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8465f2c4f22629f84c1b70f5b867ae00fd2760c;p=profile%2Fivi%2Fpulseaudio-panda.git Fix two typos that broke tunnels Signed-off-by: Lennart Poettering --- diff --git a/src/modules/module-tunnel.c b/src/modules/module-tunnel.c index 4bbb11a..a46d6e5 100644 --- a/src/modules/module-tunnel.c +++ b/src/modules/module-tunnel.c @@ -508,7 +508,7 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t off switch (code) { - case PA_SINK_MESSAGE_SET_STATE: { + case PA_SOURCE_MESSAGE_SET_STATE: { int r; if ((r = pa_source_process_msg(o, code, data, offset, chunk)) >= 0) @@ -520,7 +520,7 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t off case PA_SOURCE_MESSAGE_GET_LATENCY: { pa_usec_t yr, yl, *usec = data; - yl = pa_bytes_to_usec((uint64_t) u->counter, &PA_SINK(o)->sample_spec); + yl = pa_bytes_to_usec((uint64_t) u->counter, &PA_SOURCE(o)->sample_spec); yr = pa_smoother_get(u->smoother, pa_rtclock_usec()); *usec = yr > yl ? yr - yl : 0;