diff options
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 833ead56e2..280d6365ad 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1300,11 +1300,13 @@ Session::set_state (const XMLNode& node, int version) goto out; } - if (version < 3000 && ((child = find_named_node (node, X_("DiskStreams"))) == 0)) { - error << _("Session: XML state has no diskstreams section") << endmsg; - goto out; - } else if (load_diskstreams_2X (*child, version)) { - goto out; + if (version < 3000) { + if ((child = find_named_node (node, X_("DiskStreams"))) == 0) { + error << _("Session: XML state has no diskstreams section") << endmsg; + goto out; + } else if (load_diskstreams_2X (*child, version)) { + goto out; + } } if ((child = find_named_node (node, "Routes")) == 0) { |