diff options
author | Max Kellermann <max@duempel.org> | 2014-11-07 19:41:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-07 19:41:19 +0100 |
commit | 2d9876a261d62192b5ce976eae376ac4e1fd4b38 (patch) | |
tree | 7ad2b73867f1bf0a76d8058df30e0ad68aa42c97 /src/input/AsyncInputStream.cxx | |
parent | 303d67aed2da79d4ddaa3a52093ed42ae9da064d (diff) | |
parent | 125eb01e03082f1c33fa1b0b6d51b953eebf6c28 (diff) | |
download | mpd-2d9876a261d62192b5ce976eae376ac4e1fd4b38.tar.gz mpd-2d9876a261d62192b5ce976eae376ac4e1fd4b38.tar.xz mpd-2d9876a261d62192b5ce976eae376ac4e1fd4b38.zip |
Merge branch 'v0.19.x'
Diffstat (limited to 'src/input/AsyncInputStream.cxx')
-rw-r--r-- | src/input/AsyncInputStream.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input/AsyncInputStream.cxx b/src/input/AsyncInputStream.cxx index d34ba2ff3..c8e3fcfd5 100644 --- a/src/input/AsyncInputStream.cxx +++ b/src/input/AsyncInputStream.cxx @@ -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 */ |