summaryrefslogtreecommitdiffstats
path: root/src/polyp/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/polyp/context.c')
-rw-r--r--src/polyp/context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/polyp/context.c b/src/polyp/context.c
index 7c0ed190..047b739f 100644
--- a/src/polyp/context.c
+++ b/src/polyp/context.c
@@ -294,12 +294,14 @@ static void pstream_memblock_callback(pa_pstream *p, uint32_t channel, int64_t o
assert(c->ref >= 1);
pa_context_ref(c);
-
+
if ((s = pa_dynarray_get(c->record_streams, channel))) {
+ assert(seek == PA_SEEK_RELATIVE && offset == 0);
+
pa_memblockq_seek(s->record_memblockq, offset, seek);
pa_memblockq_push_align(s->record_memblockq, chunk);
-
+
if (s->read_callback) {
size_t l;