summaryrefslogtreecommitdiff
authorColin Guthrie <pulse@colin.guthr.ie>2008-10-11 17:20:06 (GMT)
committer Colin Guthrie <pulse@colin.guthr.ie>2008-10-11 17:20:06 (GMT)
commit3ab685c7028df0b59324a8c9c452f69b4eb53114 (patch) (side-by-side diff)
treecd07993511aa2e482ef67f88e8a208ac4ce9bd23
parent8ad1973d8f4ab3b486a4c472e044f8e30496d416 (diff)
Fix two typos that broke tunnels
-rw-r--r--src/modules/module-tunnel.c4
1 files changed, 2 insertions, 2 deletions
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;