input/rewind: add two assertions

This commit is contained in:
Max Kellermann 2010-11-05 18:25:29 +01:00
parent a728d7a026
commit dfd98eede7

View File

@ -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;