Add diag message when padding not supported

This commit is contained in:
Martchus 2018-04-29 21:13:30 +02:00
parent 9b83cc37f6
commit 388945d2b4
1 changed files with 1 additions and 0 deletions

View File

@ -1642,6 +1642,7 @@ void MediaFileInfo::makeMp3File(Diagnostics &diag, AbortableProgressFeedback &pr
// ensure we can cast padding safely to uint32
if (padding > numeric_limits<uint32>::max()) {
padding = numeric_limits<uint32>::max();
diag.emplace_back(DiagLevel::Critical, argsToString("Preferred padding is not supported. Setting preferred padding to ", padding, '.'), context);
}
if (!makers.empty()) {