aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-19 21:00:32 +0200
committerMax Kellermann <max@duempel.org>2014-08-19 21:00:32 +0200
commitf66a72c66bfe001c7bb6952dfceedc740d2b7154 (patch)
tree6b1fad25eded2cb597298ae50fc926b201b370bc /src/input
parent9be90bd1c93f2d78be687dbe9b5a98a28b2b767e (diff)
downloadmpd-f66a72c66bfe001c7bb6952dfceedc740d2b7154.tar.gz
mpd-f66a72c66bfe001c7bb6952dfceedc740d2b7154.tar.xz
mpd-f66a72c66bfe001c7bb6952dfceedc740d2b7154.zip
input/proxy: use KnownSize()
Diffstat (limited to 'src/input')
-rw-r--r--src/input/ProxyInputStream.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input/ProxyInputStream.cxx b/src/input/ProxyInputStream.cxx
index d65fb5df1..67b2c3338 100644
--- a/src/input/ProxyInputStream.cxx
+++ b/src/input/ProxyInputStream.cxx
@@ -40,7 +40,10 @@ ProxyInputStream::CopyAttributes()
if (input.HasMimeType())
SetMimeType(input.GetMimeType());
- size = input.GetSize();
+ size = input.KnownSize()
+ ? input.GetSize()
+ : -1;
+
seekable = input.IsSeekable();
SetReady();
}