From 5c82a03ae58032954cf37ff546321e56268dc402 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 22 Jun 2017 08:51:44 +0200 Subject: [PATCH] video-src: don't set timestamps Don't set timestamps on the source, because we don't provide a clock, the consumer part doesn't know how to sync to the timestamps. --- pipewire/examples/video-src.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pipewire/examples/video-src.c b/pipewire/examples/video-src.c index 0a8f05a57..728a411fc 100644 --- a/pipewire/examples/video-src.c +++ b/pipewire/examples/video-src.c @@ -110,11 +110,15 @@ static void on_timeout(struct spa_loop_utils *utils, struct spa_source *source, return; if ((h = spa_buffer_find_meta(buf, data->type.meta.Header))) { +#if 0 struct timespec now; - h->flags = 0; - h->seq = data->seq++; clock_gettime(CLOCK_MONOTONIC, &now); h->pts = SPA_TIMESPEC_TO_TIME(&now); +#else + h->pts = -1; +#endif + h->flags = 0; + h->seq = data->seq++; h->dts_offset = 0; }