aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-11-05 18:25:29 +0100
committerMax Kellermann <max@duempel.org>2010-11-05 18:40:07 +0100
commitdfd98eede742720c9b660a60b796f5b26d552de3 (patch)
tree9c2fbfb275574d5baf47cbaf94b19b2527d58558
parenta728d7a026896cc9b3fe68d00a689dee4c3312e1 (diff)
downloadmpd-dfd98eede742720c9b660a60b796f5b26d552de3.tar.gz
mpd-dfd98eede742720c9b660a60b796f5b26d552de3.tar.xz
mpd-dfd98eede742720c9b660a60b796f5b26d552de3.zip
input/rewind: add two assertions
-rw-r--r--src/input/rewind_input_plugin.c3
1 files changed, 3 insertions, 0 deletions
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;