diff options
author | Max Kellermann <max@duempel.org> | 2014-08-19 20:12:31 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-19 20:24:33 +0200 |
commit | 3f340168889cd7461ecd7faa6d599bc216f9faf0 (patch) | |
tree | 934e1644ff0006904523c68ac62d0d790d7884de | |
parent | 1307633a844a6be410b2a8ae1f90951a78b55728 (diff) | |
download | mpd-3f340168889cd7461ecd7faa6d599bc216f9faf0.tar.gz mpd-3f340168889cd7461ecd7faa6d599bc216f9faf0.tar.xz mpd-3f340168889cd7461ecd7faa6d599bc216f9faf0.zip |
decoder/DsdLib: check InputStream::KnownSize()
-rw-r--r-- | src/decoder/plugins/DsdLib.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/DsdLib.cxx b/src/decoder/plugins/DsdLib.cxx index 086f9d4d6..b1e8c776f 100644 --- a/src/decoder/plugins/DsdLib.cxx +++ b/src/decoder/plugins/DsdLib.cxx @@ -109,7 +109,7 @@ dsdlib_tag_id3(InputStream &is, { assert(tagoffset >= 0); - if (tagoffset == 0) + if (tagoffset == 0 || !is.KnownSize()) return; if (!dsdlib_skip_to(nullptr, is, tagoffset)) |