diff --git a/NEWS b/NEWS index 67b94eaea..c544808f1 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ ver 0.21 (not yet released) * player - "one-shot" single mode * input + - curl: download to buffer instead of throttling transfer - qobuz: new plugin to play Qobuz streams - tidal: new plugin to play Tidal streams * tags diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index 1cca33aa6..f808a5c21 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -25,6 +25,7 @@ #include "lib/curl/Request.hxx" #include "lib/curl/Handler.hxx" #include "lib/curl/Slist.hxx" +#include "../MaybeBufferedInputStream.hxx" #include "../AsyncInputStream.hxx" #include "../IcyInputStream.hxx" #include "IcyMetaDataParser.hxx" @@ -458,7 +459,7 @@ CurlInputStream::Open(const char *url, c->StartRequest(); }); - return std::make_unique(std::move(c), std::move(icy)); + return std::make_unique(std::make_unique(std::move(c), std::move(icy))); } InputStreamPtr