aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-19 21:02:00 +0200
committerMax Kellermann <max@duempel.org>2014-08-19 21:02:00 +0200
commitd079cda1746a30ad9708e33ec69beb69412aa9d9 (patch)
treeb190528384090f61136f78d93464b00847e7cb8f /src/input
parent4265e71d6f8334c77bef8ccb26d6f0db8b25a53e (diff)
downloadmpd-d079cda1746a30ad9708e33ec69beb69412aa9d9.tar.gz
mpd-d079cda1746a30ad9708e33ec69beb69412aa9d9.tar.xz
mpd-d079cda1746a30ad9708e33ec69beb69412aa9d9.zip
InputStream: allow GetSize() only if KnownSize()
Diffstat (limited to 'src/input')
-rw-r--r--src/input/InputStream.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/InputStream.hxx b/src/input/InputStream.hxx
index a84405df0..f335b4642 100644
--- a/src/input/InputStream.hxx
+++ b/src/input/InputStream.hxx
@@ -229,6 +229,7 @@ public:
gcc_pure
offset_type GetSize() const {
assert(ready);
+ assert(KnownSize());
return size;
}