summaryrefslogtreecommitdiff
path: root/libs/ardour/export_profile_manager.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-02-26 20:48:51 +0000
committerCarl Hetherington <carl@carlh.net>2012-02-26 20:48:51 +0000
commitbd2e28aaacaf75448324cdd139d2062ce595d2c1 (patch)
tree55a5adf47057a5871a62a17ed04dc40f5bedab51 /libs/ardour/export_profile_manager.cc
parentfdca23a79169be8f12655ed6dea3e37948321e9c (diff)
Fix crash on opening the export dialogue when there are no
formats (#4742). git-svn-id: svn://localhost/ardour2/branches/3.0@11524 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/export_profile_manager.cc')
-rw-r--r--libs/ardour/export_profile_manager.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/export_profile_manager.cc b/libs/ardour/export_profile_manager.cc
index c644687f59..54779cfa32 100644
--- a/libs/ardour/export_profile_manager.cc
+++ b/libs/ardour/export_profile_manager.cc
@@ -714,6 +714,8 @@ ExportProfileManager::remove_filename_state (FilenameStatePtr state)
std::string
ExportProfileManager::get_sample_filename_for_format (ExportFilenamePtr filename, ExportFormatSpecPtr format)
{
+ assert (format);
+
if (channel_configs.empty()) { return ""; }
std::list<string> filenames;