summaryrefslogtreecommitdiff
path: root/libs/ardour/export_profile_manager.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-05-06 00:15:48 +0200
committerRobin Gareus <robin@gareus.org>2013-05-06 00:15:48 +0200
commitee426ca223833dddcf660bb20e1e7cbb1785616a (patch)
tree5565d1f2b0cbcfd3885dbc9afc3a631591425269 /libs/ardour/export_profile_manager.cc
parent65b6f8efad3a53893138da53527a0e62d28af655 (diff)
fix crash on export if no master bus is present in the session
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 deeb3aea2b..388ffe2508 100644
--- a/libs/ardour/export_profile_manager.cc
+++ b/libs/ardour/export_profile_manager.cc
@@ -501,6 +501,8 @@ ExportProfileManager::init_channel_configs (XMLNodeList nodes)
channel_configs.push_back (config);
// Add master outs as default
+ if (!session.master_out()) { return false; }
+
IO* master_out = session.master_out()->output().get();
if (!master_out) { return false; }