Misc cleanup

This commit is contained in:
emeric
2019-03-24 14:11:39 +01:00
parent 89f36e4235
commit be6ca7cc1b
3 changed files with 5 additions and 6 deletions
+4 -4
View File
@@ -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
-1
View File
@@ -34,7 +34,6 @@ std::set<std::string> defaultClusterTypeNames =
"ALBUMGROUPING", "ALBUMGROUPING",
"MOOD", "MOOD",
"ALBUMMOOD", "ALBUMMOOD",
"COMMENT:SONGS-DB_OCCASION",
}; };
} }
+1 -1
View File
@@ -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