mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
tests: Resampler output memchunk may be reset (zero)
Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
This commit is contained in:
parent
f4635818bd
commit
81f0eb626e
1 changed files with 2 additions and 1 deletions
|
|
@ -431,7 +431,8 @@ int main(int argc, char *argv[]) {
|
||||||
i.index = 0;
|
i.index = 0;
|
||||||
while (seconds--) {
|
while (seconds--) {
|
||||||
pa_resampler_run(resampler, &i, &j);
|
pa_resampler_run(resampler, &i, &j);
|
||||||
pa_memblock_unref(j.memblock);
|
if (j.memblock)
|
||||||
|
pa_memblock_unref(j.memblock);
|
||||||
}
|
}
|
||||||
pa_log_info("resampling: %llu", (long long unsigned)(pa_rtclock_now() - ts));
|
pa_log_info("resampling: %llu", (long long unsigned)(pa_rtclock_now() - ts));
|
||||||
pa_memblock_unref(i.memblock);
|
pa_memblock_unref(i.memblock);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue