diff options
author | Forest Bond <forest.bond@rapidrollout.com> | 2011-05-20 12:16:54 -0400 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-06-05 21:25:51 +0200 |
commit | b54a43a8cf416da19e11de053c9848b119e34613 (patch) | |
tree | 8591e9b468f8b6042bbec1c99b1e6cac8384e593 | |
parent | 8a437ee5e19b38431ca6bccfd6676fcc23c88f0c (diff) |
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.
-rw-r--r-- | src/modules/module-combine.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/module-combine.c b/src/modules/module-combine.c index aec774ee..1343b70d 100644 --- a/src/modules/module-combine.c +++ b/src/modules/module-combine.c @@ -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; |