input/qobuz: initialize the libgcrypt library

This commit is contained in:
Max Kellermann
2018-07-26 18:18:10 +02:00
parent 097e2b6c62
commit e16fd4a09b
3 changed files with 49 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
#include "input/FailingInputStream.hxx"
#include "input/InputPlugin.hxx"
#include "config/Block.hxx"
#include "lib/gcrypt/Init.hxx"
#include "thread/Mutex.hxx"
#include "util/StringCompare.hxx"
@@ -126,6 +127,8 @@ QobuzInputStream::OnQobuzTrackError(std::exception_ptr e) noexcept
static void
InitQobuzInput(EventLoop &event_loop, const ConfigBlock &block)
{
Gcrypt::Init();
const char *base_url = block.GetBlockValue("base_url",
"http://www.qobuz.com/api.json/0.2/");