1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-15 07:01:18 +02:00

Fix building without libid3tag (#230)

* Fix building without libid3tag

* Fix building without libid3tag

Extend the pull Audacity#214 from torto9 to fix building
with twolame but without libid3tag
This commit is contained in:
Richard Ash
2018-01-07 17:06:33 +00:00
committed by Paul Licameli
parent 8724a5a283
commit 499c6b4f36
4 changed files with 9 additions and 0 deletions

View File

@@ -335,10 +335,12 @@ static wxString AskCopyOrEdit()
return oldCopyPref;
}
#ifdef USE_LIBID3TAG
struct id3_tag_deleter {
void operator () (id3_tag *p) const { if (p) id3_tag_delete(p); }
};
using id3_tag_holder = std::unique_ptr<id3_tag, id3_tag_deleter>;
#endif
ProgressResult PCMImportFileHandle::Import(TrackFactory *trackFactory,
TrackHolders &outTracks,