pipewire/src
Janne Grunau be1677f569 stream: Fix pw_time.delay calculation for rate.num > 1
Pipewire uses a rate of 256/7680 with the integrated camera of Apple
silicon Macbooks. To calculate pw_time.delay correctly in this case it
has to be divided by time->rate.num. Without this division the delay
contribution of the `((latency->min_ns + latency->max_ns) / 2)` term
ends up as 255 which are 8.5 seconds.
pipewiresrc reports the delay as latency in the gstreamer pipeline which
results in rendering a frame every 8.5 seconds.
I suspect the non-normalized rate of 256/7680 is another bug in
pipewire. The rate for an UVC webcam is reported as 1/30. Both
Video4Linux2 devices report a discrete frame interval of 0.033s (30fps).

Fixes #4957

(cherry picked from commit f03021edd1)
2025-12-15 09:54:16 +01:00
..
daemon systemd: remove RestrictNamespaces from service file 2025-09-17 10:29:35 +02:00
examples Use "8 bit raw midi" for control ports again 2025-05-23 17:00:05 +02:00
gst gst: Use gst_util_uint64_scale instead of scale_int 2025-10-30 18:05:48 +01:00
modules modules: use timer-queue in avahi-poll 2025-10-13 11:27:56 -07:00
pipewire stream: Fix pw_time.delay calculation for rate.num > 1 2025-12-15 09:54:16 +01:00
tests pw-container: use smaller path for temporary file 2024-06-27 21:18:06 +00:00
tools tools: dump sndfile loginfo on error when verbose 2025-09-10 10:12:00 +02:00
meson.build meson.build: fix compile with -Dexamples=disabled 2023-11-28 10:18:25 +00:00