Fix another hardcoded "tar.xz" -> ARDOUR::session_archive_suffix
authorRobin Gareus <robin@gareus.org>
Tue, 3 Oct 2017 16:03:40 +0000 (18:03 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 3 Oct 2017 16:03:40 +0000 (18:03 +0200)
libs/ardour/find_session.cc

index 5ee9f47cc3be16179a75e5832c8fdf9faca6b390..75339c9f51bd802ba758c7b354f5ef6e1e48f8c7 100644 (file)
@@ -196,7 +196,7 @@ find_session (string str, string& path, string& snapshot, bool& isnew)
 int
 inflate_session (const std::string& zipfile, const std::string& target_dir, string& path, string& snapshot)
 {
-       if (zipfile.find (".tar.xz") == string::npos) {
+       if (zipfile.find (session_archive_suffix) == string::npos) {
                return 1;
        }