input/rewind: add two assertions
This commit is contained in:
parent
a728d7a026
commit
dfd98eede7
@ -83,6 +83,9 @@ copy_attributes(struct input_stream *dest)
|
|||||||
const struct input_rewind *r = dest->data;
|
const struct input_rewind *r = dest->data;
|
||||||
const struct input_stream *src = &r->input;
|
const struct input_stream *src = &r->input;
|
||||||
|
|
||||||
|
assert(dest != src);
|
||||||
|
assert(dest->mime != src->mime);
|
||||||
|
|
||||||
dest->ready = src->ready;
|
dest->ready = src->ready;
|
||||||
dest->seekable = src->seekable;
|
dest->seekable = src->seekable;
|
||||||
dest->error = src->error;
|
dest->error = src->error;
|
||||||
|
Loading…
Reference in New Issue
Block a user