]> code.delx.au - pulseaudio/commitdiff
Fix two typos that broke tunnels
authorColin Guthrie <pulse@colin.guthr.ie>
Sat, 11 Oct 2008 17:20:06 +0000 (18:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Oct 2008 17:53:45 +0000 (19:53 +0200)
Signed-off-by: Lennart Poettering <lennart@poettering.net>
src/modules/module-tunnel.c

index 4bbb11a5a7266a0794d2ebd10d8ea73d3f80ee49..a46d6e599f22b5f014eff278a4b73c8b658a1c8b 100644 (file)
@@ -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;