mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
module-combine-sink: Check running flag before rendering in null mode
This makes process_render_null consistent with render_memblock and avoids introducing slight inaccuracies in early latency estimates.
This commit is contained in:
parent
249218b944
commit
21ac93e4eb
1 changed files with 4 additions and 0 deletions
|
|
@ -261,6 +261,10 @@ static void process_render_null(struct userdata *u, pa_usec_t now) {
|
|||
size_t ate = 0;
|
||||
pa_assert(u);
|
||||
|
||||
/* If we are not running, we cannot produce any data */
|
||||
if (!pa_atomic_load(&u->thread_info.running))
|
||||
return;
|
||||
|
||||
if (u->thread_info.in_null_mode)
|
||||
u->thread_info.timestamp = now;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue