input/rewind: fix assertion failure

The assertion added in MPD 0.15.14 was too much, it failed when the
MIME type of a stream was NULL.
This commit is contained in:
Max Kellermann 2010-11-08 10:37:09 +01:00
parent 462bba8e2f
commit ad52eb236d
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.15.15 (2010/??/??)
* input:
- rewind: fix assertion failure
ver 0.15.14 (2010/11/06)

View File

@ -84,7 +84,7 @@ copy_attributes(struct input_stream *dest)
const struct input_stream *src = &r->input;
assert(dest != src);
assert(dest->mime != src->mime);
assert(src->mime == NULL || dest->mime != src->mime);
dest->ready = src->ready;
dest->seekable = src->seekable;