Various build fixes, ref #802

This commit is contained in:
emeric
2026-01-04 00:07:43 +01:00
parent 86f45aeec2
commit ae92f5c156
8 changed files with 127 additions and 68 deletions
@@ -52,7 +52,7 @@ namespace lms::api::subsonic
{
struct OutputFormat
{
std::string name;
std::string_view name;
core::media::Container container;
core::media::Codec codec;
};
@@ -26,7 +26,7 @@
namespace lms::api::subsonic
{
struct RequestContext;
class RequestContext;
Response handleGetTranscodeDecision(RequestContext& context);
void handleGetTranscodeStream(RequestContext& context, const Wt::Http::Request& request, Wt::Http::Response& response);
@@ -43,6 +43,13 @@ namespace lms::api::subsonic
Clock::time_point addedTimePoint;
AudioFileId audioFileId;
StreamDetails targetStreamInfo;
Entry(Clock::time_point _addedTimePoint, AudioFileId _audioFileId, const StreamDetails& _targetStreamInfo)
: addedTimePoint{ _addedTimePoint }
, audioFileId{ _audioFileId }
, targetStreamInfo{ _targetStreamInfo }
{
}
};
virtual core::UUID add(AudioFileId audioFileId, const StreamDetails& targetStreamInfo) = 0;
@@ -26,6 +26,7 @@
#include <Wt/Json/Parser.h>
#include "core/String.hpp"
#include "core/Utils.hpp"
#include "SubsonicResponse.hpp"
@@ -61,7 +62,7 @@ namespace lms::api::subsonic
}
else
{
static_assert(false, "Unhandled type");
static_assert(core::utils::dependent_false_v<T>, "Unhandled type");
}
return static_cast<T>(value);
@@ -105,7 +106,7 @@ namespace lms::api::subsonic
}
else
{
static_assert(false, "Unhandled type");
static_assert(core::utils::dependent_false_v<T>, "Unhandled type");
}
res.emplace_back(static_cast<T>(item));