summaryrefslogtreecommitdiff
path: root/spa/plugins/audiotestsrc
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2018-11-07 10:07:48 +0100
committerWim Taymans <wtaymans@redhat.com>2018-11-07 10:07:48 +0100
commitaade499aae69ba3856c389a4bfb0b469800e1330 (patch)
tree59d8eeb8fcb9e6d4c4147f003012cc7425d124f7 /spa/plugins/audiotestsrc
parent8d9aae061b46c72261ae9f14f2120a9555643d0b (diff)
fix TIMESPEC_TO_NSEC
Diffstat (limited to 'spa/plugins/audiotestsrc')
-rw-r--r--spa/plugins/audiotestsrc/audiotestsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spa/plugins/audiotestsrc/audiotestsrc.c b/spa/plugins/audiotestsrc/audiotestsrc.c
index e84ae47f..66a71e00 100644
--- a/spa/plugins/audiotestsrc/audiotestsrc.c
+++ b/spa/plugins/audiotestsrc/audiotestsrc.c
@@ -419,7 +419,7 @@ static int impl_node_send_command(struct spa_node *node, const struct spa_comman
clock_gettime(CLOCK_MONOTONIC, &now);
if (this->props.live)
- this->start_time = SPA_TIMESPEC_TO_TIME(&now);
+ this->start_time = SPA_TIMESPEC_TO_NSEC(&now);
else
this->start_time = 0;
this->sample_count = 0;