Skip to content

Commit

Permalink
Fix building without libid3tag
Browse files Browse the repository at this point in the history
Extend the pull audacity#214 from torto9 to fix building
with twolame but without libid3tag
  • Loading branch information
richardash1981 committed Jan 6, 2018
1 parent a4d657b commit 01202ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/export/ExportMP2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,13 @@ wxWindow *ExportMP2::OptionsCreate(wxWindow *parent, int format)
return safenew ExportMP2Options(parent, format);
}


#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

// returns buffer len; caller frees
int ExportMP2::AddTags(
Expand Down

0 comments on commit 01202ce

Please sign in to comment.