diff options
author | Max Kellermann <max@duempel.org> | 2010-11-05 18:25:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-11-05 18:40:07 +0100 |
commit | dfd98eede742720c9b660a60b796f5b26d552de3 (patch) | |
tree | 9c2fbfb275574d5baf47cbaf94b19b2527d58558 | |
parent | a728d7a026896cc9b3fe68d00a689dee4c3312e1 (diff) | |
download | mpd-dfd98eede742720c9b660a60b796f5b26d552de3.tar.gz mpd-dfd98eede742720c9b660a60b796f5b26d552de3.tar.xz mpd-dfd98eede742720c9b660a60b796f5b26d552de3.zip |
input/rewind: add two assertions
-rw-r--r-- | src/input/rewind_input_plugin.c | 3 |
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; |