]> code.delx.au - pulseaudio/commitdiff
Fix the message processing for PA_SINK_MESSAGE_GET_LATENCY by returning rather than...
authorColin Guthrie <pulse@colin.guthr.ie>
Tue, 27 Jan 2009 22:59:36 +0000 (22:59 +0000)
committerColin Guthrie <pulse@colin.guthr.ie>
Tue, 27 Jan 2009 23:02:41 +0000 (23:02 +0000)
src/modules/module-raop-sink.c

index 02ef2aae4d3d7d9a698dab0f83020c4f2394ee5f..74ee612275886b277f40555744cd485605e20752 100644 (file)
@@ -208,7 +208,7 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
             w = pa_bytes_to_usec((u->offset - u->encoding_overhead + (u->encoded_memchunk.length / u->encoding_ratio)), &u->sink->sample_spec);
 
             *((pa_usec_t*) data) = w > r ? w - r : 0;
-            break;
+            return 0;
         }
 
         case SINK_MESSAGE_PASS_SOCKET: {