Skip to content

Commit

Permalink
AAF: set session name from AAF filename instead of AAF composition name
Browse files Browse the repository at this point in the history
  • Loading branch information
agfline committed May 10, 2024
1 parent c62fbc5 commit b30440b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions gtk2_ardour/ardour_ui_aaf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,7 @@ ARDOUR_UI::new_session_from_aaf (string const& aaf, string const& target_dir, st
return -1;
}

/* extract or set session name */
if (aafi->compositionName && aafi->compositionName[0] != 0x00) {
string compositionName = string (aafi->compositionName);
snapshot = laaf_util_clean_filename (&compositionName[0]);
} else {
snapshot = basename_nosuffix (aaf);
}

snapshot = legalize_for_universal_path (snapshot);
snapshot = legalize_for_universal_path (basename_nosuffix (aaf));
path = Glib::build_filename (target_dir, snapshot);

if (Glib::file_test (path, Glib::FILE_TEST_EXISTS)) {
Expand Down

0 comments on commit b30440b

Please sign in to comment.