1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Undoing and redoing of Tags...

Use reference counting (in std::shared_ptr) to avoid replicating Tags with each
Undo state.
This commit is contained in:
Paul Licameli
2016-02-11 11:03:12 -05:00
parent e12a060751
commit 88eeebcb8b
10 changed files with 109 additions and 27 deletions

View File

@@ -364,7 +364,7 @@ bool Exporter::Process(AudacityProject *project, bool selectedOnly, double t0, d
// Let user edit MetaData
if (mPlugins[mFormat]->GetCanMetaData(mSubFormat)) {
if (!(project->GetTags()->ShowEditDialog(project, _("Edit Metadata Tags"), mProject->GetShowId3Dialog()))) {
if (!(project->DoEditMetadata(_("Edit Metadata Tags for Export"), _("Exported Tags"), mProject->GetShowId3Dialog()))) {
return false;
}
}

View File

@@ -312,7 +312,8 @@ bool ExportFFmpeg::Init(const char *shortname, AudacityProject *project, const T
if (!InitCodecs(project))
return false;
if (metadata == NULL) metadata = project->GetTags();
if (metadata == NULL)
metadata = project->GetTags();
// Add metadata BEFORE writing the header.
// At the moment that works with ffmpeg-git and ffmpeg-0.5 for MP4.