aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-19 20:12:31 +0200
committerMax Kellermann <max@duempel.org>2014-08-19 20:24:33 +0200
commit3f340168889cd7461ecd7faa6d599bc216f9faf0 (patch)
tree934e1644ff0006904523c68ac62d0d790d7884de /src/decoder
parent1307633a844a6be410b2a8ae1f90951a78b55728 (diff)
downloadmpd-3f340168889cd7461ecd7faa6d599bc216f9faf0.tar.gz
mpd-3f340168889cd7461ecd7faa6d599bc216f9faf0.tar.xz
mpd-3f340168889cd7461ecd7faa6d599bc216f9faf0.zip
decoder/DsdLib: check InputStream::KnownSize()
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/plugins/DsdLib.cxx2
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))