gst: handle latency in the pipewiresrc

Get the delay in the graph and subtract this from the cycle start time
to get the timestamp of the buffer.

Report this latency as well.

Fixes #30
This commit is contained in:
Wim Taymans 2024-03-15 17:31:43 +01:00
parent 1fe498560b
commit 2c0d73ab49
2 changed files with 17 additions and 10 deletions

View file

@ -68,6 +68,7 @@ struct _GstPipeWireSrc {
gboolean eos;
gboolean is_live;
int64_t delay;
GstClockTime min_latency;
GstClockTime max_latency;