Commit dfd98eed authored by Max Kellermann's avatar Max Kellermann

input/rewind: add two assertions

parent a728d7a0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment