MCPcopy Create free account
hub / github.com/audacity/audacity / SetMetadata

Method SetMetadata

modules/import-export/mod-ffmpeg/ExportFFmpeg.cpp:1722–1733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1720}
1721
1722void FFmpegExporter::SetMetadata(const Tags *tags, const char *name, const wxChar *tag)
1723{
1724 if (tags->HasTag(tag))
1725 {
1726 wxString value = tags->GetTag(tag);
1727
1728 AVDictionaryWrapper metadata = mEncFormatCtx->GetMetadata();
1729
1730 metadata.Set(name, mSupportsUTF8 ? value : value.mb_str(), 0);
1731 mEncFormatCtx->SetMetadata(metadata);
1732 }
1733}
1734
1735
1736//----------------------------------------------------------------------------

Callers 1

InitCodecsMethod · 0.80

Calls 4

HasTagMethod · 0.80
GetTagMethod · 0.80
GetMetadataMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected