diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-17 18:32:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-17 18:32:49 +0200 |
commit | 22055a07c075b5fba546f0453ba93867747519c1 (patch) | |
tree | 8b01af864a58b5de3745c5219b9b75afef83e6b3 /libs/ardour/ardour/session.h | |
parent | e62e040502ac35213ce11353c9c1e7a487eb941f (diff) |
Check major session file format version.
Don't allow to load sessions created with a newer version of Ardour
with an old one (no forward compatibility).
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r-- | libs/ardour/ardour/session.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index f1cb739673..aec229e11d 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1421,8 +1421,9 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop Glib::Threads::Mutex save_state_lock; Glib::Threads::Mutex peak_cleanup_lock; - int load_options (const XMLNode&); - int load_state (std::string snapshot_name); + int load_options (const XMLNode&); + int load_state (std::string snapshot_name); + static int parse_stateful_loading_version (const std::string&); framepos_t _last_roll_location; /** the session frame time at which we last rolled, located, or changed transport direction */ |