summaryrefslogtreecommitdiff
path: root/src/modules/module-null-sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/module-null-sink.c')
-rw-r--r--src/modules/module-null-sink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/module-null-sink.c b/src/modules/module-null-sink.c
index 74a2ebb1f..0bcae2bae 100644
--- a/src/modules/module-null-sink.c
+++ b/src/modules/module-null-sink.c
@@ -108,10 +108,10 @@ static int sink_process_msg(
break;
case PA_SINK_MESSAGE_GET_LATENCY: {
- pa_usec_t now;
+ pa_usec_t *r = data;
- now = pa_rtclock_now();
- *((pa_usec_t*) data) = u->timestamp > now ? u->timestamp - now : 0ULL;
+ r[1] = r[2] = pa_rtclock_now();
+ r[0] = u->timestamp > r[1] ? u->timestamp - r[1] : 0ULL;
return 0;
}