summaryrefslogtreecommitdiffstats
path: root/polyp/play-memchunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/play-memchunk.c')
-rw-r--r--polyp/play-memchunk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/polyp/play-memchunk.c b/polyp/play-memchunk.c
index b94a0524..486f0cf6 100644
--- a/polyp/play-memchunk.c
+++ b/polyp/play-memchunk.c
@@ -25,6 +25,8 @@
#include <stdlib.h>
#include <assert.h>
+#include <stdio.h>
+#include <string.h>
#include "play-memchunk.h"
#include "sink-input.h"
@@ -64,7 +66,7 @@ static void sink_input_drop(struct pa_sink_input *i, const struct pa_memchunk*ch
assert(i && length && i->userdata);
c = i->userdata;
- assert(chunk == c);
+ assert(!memcmp(chunk, c, sizeof(chunk)));
assert(length <= c->length);
c->length -= length;