diff options
author | Max Kellermann <max@duempel.org> | 2010-11-08 10:37:09 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-11-08 10:37:09 +0100 |
commit | ad52eb236d8746dffce0a5b07bf58a62bf0835d8 (patch) | |
tree | b067a48045b10714e6c1315352bd9fad42202e67 /src/input | |
parent | 462bba8e2ffc46ec5c3daf4bb0c174a8d72ae1c3 (diff) | |
download | mpd-ad52eb236d8746dffce0a5b07bf58a62bf0835d8.tar.gz mpd-ad52eb236d8746dffce0a5b07bf58a62bf0835d8.tar.xz mpd-ad52eb236d8746dffce0a5b07bf58a62bf0835d8.zip |
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.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/rewind_input_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/rewind_input_plugin.c b/src/input/rewind_input_plugin.c index 1927c525a..9e57e6999 100644 --- a/src/input/rewind_input_plugin.c +++ b/src/input/rewind_input_plugin.c @@ -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; |