| 1720 | } |
| 1721 | |
| 1722 | void 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 | //---------------------------------------------------------------------------- |
no test coverage detected