759f8b1
From cab7cc3dfdbcc7dbe55862a3b39d9c6950a93c12 Mon Sep 17 00:00:00 2001
759f8b1
From: Colin Guthrie <pulse@colin.guthr.ie>
759f8b1
Date: Sat, 11 Oct 2008 18:20:06 +0100
759f8b1
Subject: [PATCH] Fix two typos that broke tunnels
759f8b1
759f8b1
---
759f8b1
 src/modules/module-tunnel.c |    4 ++--
759f8b1
 1 files changed, 2 insertions(+), 2 deletions(-)
759f8b1
759f8b1
diff --git a/src/modules/module-tunnel.c b/src/modules/module-tunnel.c
759f8b1
index 4bbb11a..a46d6e5 100644
759f8b1
--- a/src/modules/module-tunnel.c
759f8b1
+++ b/src/modules/module-tunnel.c
759f8b1
@@ -508,7 +508,7 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t off
759f8b1
 
759f8b1
     switch (code) {
759f8b1
 
759f8b1
-        case PA_SINK_MESSAGE_SET_STATE: {
759f8b1
+        case PA_SOURCE_MESSAGE_SET_STATE: {
759f8b1
             int r;
759f8b1
 
759f8b1
             if ((r = pa_source_process_msg(o, code, data, offset, chunk)) >= 0)
759f8b1
@@ -520,7 +520,7 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t off
759f8b1
         case PA_SOURCE_MESSAGE_GET_LATENCY: {
759f8b1
             pa_usec_t yr, yl, *usec = data;
759f8b1
 
759f8b1
-            yl = pa_bytes_to_usec((uint64_t) u->counter, &PA_SINK(o)->sample_spec);
759f8b1
+            yl = pa_bytes_to_usec((uint64_t) u->counter, &PA_SOURCE(o)->sample_spec);
759f8b1
             yr = pa_smoother_get(u->smoother, pa_rtclock_usec());
759f8b1
 
759f8b1
             *usec = yr > yl ? yr - yl : 0;
759f8b1
-- 
759f8b1
1.6.0.3
759f8b1