summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-02-14 10:52:21 +0100
committerWim Taymans <wtaymans@redhat.com>2020-02-14 10:52:21 +0100
commit046f41c31cdce62599b770d0d8f34defb91ba725 (patch)
tree2d155b7025ae6a6aea07b032c52fa8f844ea9dd3
parent6603fab4055e219cd958f6ec1dacd70faf5c6e3c (diff)
test: fix number of queued samples
The number of queued samples is twice the delay.
-rw-r--r--spa/plugins/audioconvert/test-resample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spa/plugins/audioconvert/test-resample.c b/spa/plugins/audioconvert/test-resample.c
index 60231dbd..968b2f14 100644
--- a/spa/plugins/audioconvert/test-resample.c
+++ b/spa/plugins/audioconvert/test-resample.c
@@ -111,7 +111,7 @@ static void pull_blocks(struct resample *r, uint32_t size)
in_len, pin_len, out_len, pout_len,
resample_in_len(r, size));
- spa_assert(in_len == pin_len + resample_delay(r));
+ spa_assert(in_len == pin_len + (resample_delay(r) * 2));
spa_assert(out_len == pout_len);
}
}