mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
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:
parent
0fc6b1c0be
commit
5c82a03ae5
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue