summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-06-21 22:35:30 +0200
committerMax Kellermann <max@musicpd.org>2018-06-21 22:35:36 +0200
commit197968d65e5b212c9d1712a498b1c92e7985f2e3 (patch)
tree6595972184676eef4082a60603cac6d5ec0a8e90 /src/input
parent2cb83a1f841610207459cc7b944e187e2d0657d8 (diff)
input/Stream: mark qobuz:// and tidal:// as "seeking is expensive"
Those are loaded with the "curl" input plugin, and this one is "expensive", because it needs to send a new HTTP request with Range header for each seek.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/InputStream.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/InputStream.cxx b/src/input/InputStream.cxx
index 7bf3272a1..c1d6b8c08 100644
--- a/src/input/InputStream.cxx
+++ b/src/input/InputStream.cxx
@@ -79,6 +79,8 @@ static bool
ExpensiveSeeking(const char *uri) noexcept
{
return StringStartsWith(uri, "http://") ||
+ StringStartsWith(uri, "tidal://") ||
+ StringStartsWith(uri, "qobuz://") ||
StringStartsWith(uri, "https://");
}