mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 05:05:43 +01:00
Prevent crash if export format is N/A
This can happen when trying to use the mp3 preset while there is no mp3 encoder available.
This commit is contained in:
parent
f807ea6ea2
commit
a0a49b9769
1 changed files with 7 additions and 0 deletions
|
|
@ -905,6 +905,13 @@ ExportProfileManager::get_warnings ()
|
|||
}
|
||||
}
|
||||
|
||||
for (auto const& fm : formats) {
|
||||
if (!fm->format) {
|
||||
warnings->errors.push_back (_("Invalid export format selected!"));
|
||||
return warnings;
|
||||
}
|
||||
}
|
||||
|
||||
/*** Check files ***/
|
||||
|
||||
/* handle_duplicate_format_extensions */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue