Commit 1bd8a322 authored by Max Kellermann's avatar Max Kellermann

input/AsyncInputStream: set Error when seeking unseekable

Fixes crash in the "audiofile" decoder while logging the seek error.
parent 362e73be
ver 0.19.3 (not yet released)
* decoder
- audiofile: fix crash while playing streams
ver 0.19.2 (2014/11/02)
* input
......
......@@ -19,6 +19,7 @@
#include "config.h"
#include "AsyncInputStream.hxx"
#include "Domain.hxx"
#include "tag/Tag.hxx"
#include "event/Call.hxx"
#include "thread/Cond.hxx"
......@@ -113,8 +114,10 @@ AsyncInputStream::Seek(offset_type new_offset, Error &error)
/* no-op */
return true;
if (!IsSeekable())
if (!IsSeekable()) {
error.Set(input_domain, "Not seekable");
return false;
}
/* check if we can fast-forward the buffer */
......
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