From dfd98eede742720c9b660a60b796f5b26d552de3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Nov 2010 18:25:29 +0100 Subject: input/rewind: add two assertions --- src/input/rewind_input_plugin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/input/rewind_input_plugin.c b/src/input/rewind_input_plugin.c index c03f7f031..ead5765c8 100644 --- a/src/input/rewind_input_plugin.c +++ b/src/input/rewind_input_plugin.c @@ -83,6 +83,9 @@ copy_attributes(struct input_stream *dest) const struct input_rewind *r = dest->data; const struct input_stream *src = &r->input; + assert(dest != src); + assert(dest->mime != src->mime); + dest->ready = src->ready; dest->seekable = src->seekable; dest->error = src->error; -- cgit v1.2.3