mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-23 13:47:24 +01:00
another edge-case, don't crash on invalid files with zero channels
This commit is contained in:
parent
443ccb866f
commit
c7c3c1e924
1 changed files with 5 additions and 0 deletions
|
|
@ -522,6 +522,11 @@ Session::import_files (ImportStatus& status)
|
|||
}
|
||||
}
|
||||
|
||||
if (channels == 0) {
|
||||
error << _("Import: file contains no channels.") << endmsg;
|
||||
continue;
|
||||
}
|
||||
|
||||
vector<string> new_paths = get_paths_for_new_sources (config.get_native_file_header_format(),
|
||||
status.replace_existing_source, *p,
|
||||
get_best_session_directory_for_new_source (),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue