null-sink: Request no more than the configured latency from sink-input
authorGeorg Chini <georg@chini.tk>
Sun, 16 May 2021 17:03:58 +0000 (19:03 +0200)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 17 May 2021 14:40:15 +0000 (14:40 +0000)
commitdbaf450394ddb4eef8a45bdedcb7ae7a569e0304
treeb53e5d0ae60e19e11e6c81af1b4af4b24521a839
parent80efd7a64c4684999197d5bf77c3c6b667491476
null-sink: Request no more than the configured latency from sink-input

In the case, where the latency is larger than the maximum block size,
module-null-sink will request multiples of the maximum block size from
the sink input instead of limiting the requested amount of data to the
the configured latency.

This patch fixes the problem.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/554>
src/modules/module-null-sink.c