From ad52eb236d8746dffce0a5b07bf58a62bf0835d8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Nov 2010 10:37:09 +0100 Subject: 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. --- src/input/rewind_input_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input') 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; -- cgit v1.2.3