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.
This commit is contained in:
Wim Taymans 2017-06-22 08:51:44 +02:00
parent 0fc6b1c0be
commit 5c82a03ae5

View file

@ -110,11 +110,15 @@ static void on_timeout(struct spa_loop_utils *utils, struct spa_source *source,
return; return;
if ((h = spa_buffer_find_meta(buf, data->type.meta.Header))) { if ((h = spa_buffer_find_meta(buf, data->type.meta.Header))) {
#if 0
struct timespec now; struct timespec now;
h->flags = 0;
h->seq = data->seq++;
clock_gettime(CLOCK_MONOTONIC, &now); clock_gettime(CLOCK_MONOTONIC, &now);
h->pts = SPA_TIMESPEC_TO_TIME(&now); h->pts = SPA_TIMESPEC_TO_TIME(&now);
#else
h->pts = -1;
#endif
h->flags = 0;
h->seq = data->seq++;
h->dts_offset = 0; h->dts_offset = 0;
} }