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:
Forest Bond 2011-05-20 12:16:54 -04:00 committed by Colin Guthrie
parent 249218b944
commit 21ac93e4eb

View file

@ -261,6 +261,10 @@ static void process_render_null(struct userdata *u, pa_usec_t now) {
size_t ate = 0; size_t ate = 0;
pa_assert(u); 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) if (u->thread_info.in_null_mode)
u->thread_info.timestamp = now; u->thread_info.timestamp = now;