diff options
author | Max Kellermann <max@musicpd.org> | 2018-06-21 22:35:30 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-06-21 22:35:36 +0200 |
commit | 197968d65e5b212c9d1712a498b1c92e7985f2e3 (patch) | |
tree | 6595972184676eef4082a60603cac6d5ec0a8e90 /src/input | |
parent | 2cb83a1f841610207459cc7b944e187e2d0657d8 (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.cxx | 2 |
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://"); } |