NO-OP: add comment for cross-reference

This commit is contained in:
Robin Gareus 2019-03-26 22:25:20 +01:00
parent 86138d18f9
commit 572df2c3bd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,8 @@ namespace ARDOUR
bool
AudiofileTagger::tag_file (std::string const & filename, SessionMetadata const & metadata)
{
/* see also SessionMetadata::av_export_tag () for ffmpeg/liblame */
TagLib::FileRef file (filename.c_str());
if (file.isNull()) {
std::cerr << "TagLib::FileRef is null for file" << filename << std::endl;

View File

@ -651,6 +651,12 @@ SessionMetadata::set_country (const string & v)
void
SessionMetadata::av_export_tag (MetaDataMap& meta) const
{
/* this is used for ffmpeg/liblame -metadata key=value
* (video and mp3 export).
* for flac/ogg's vorbis-comment see:
* AudiofileTagger::tag_generic()
* AudiofileTagger::tag_vorbis_comment()
*/
if (year() > 0) {
std::ostringstream osstream; osstream << year();
meta["year"] = osstream.str();