Misc cleanup
This commit is contained in:
@@ -45,10 +45,10 @@ std::string encodingToMimetype(Encoding encoding);
|
|||||||
|
|
||||||
struct TranscodeParameters
|
struct TranscodeParameters
|
||||||
{
|
{
|
||||||
Encoding encoding = Encoding::MP3;
|
Encoding encoding {Encoding::MP3};
|
||||||
std::size_t bitrate = 128000;
|
std::size_t bitrate {128000};
|
||||||
boost::optional<std::size_t> stream = boost::none; // Id of the stream to be transcoded (auto detect by default)
|
boost::optional<std::size_t> stream {boost::none}; // Id of the stream to be transcoded (auto detect by default)
|
||||||
boost::optional<std::chrono::seconds> offset = boost::none;
|
boost::optional<std::chrono::seconds> offset {boost::none};
|
||||||
};
|
};
|
||||||
|
|
||||||
class Transcoder
|
class Transcoder
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ std::set<std::string> defaultClusterTypeNames =
|
|||||||
"ALBUMGROUPING",
|
"ALBUMGROUPING",
|
||||||
"MOOD",
|
"MOOD",
|
||||||
"ALBUMMOOD",
|
"ALBUMMOOD",
|
||||||
"COMMENT:SONGS-DB_OCCASION",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ AudioResource::handleRequest(const Wt::Http::Request& request,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Database::IdType trackId;
|
Database::IdType trackId;
|
||||||
Av::TranscodeParameters parameters;
|
Av::TranscodeParameters parameters {};
|
||||||
|
|
||||||
LMS_LOG(UI, DEBUG) << "No continuation yet";
|
LMS_LOG(UI, DEBUG) << "No continuation yet";
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user