MediaFile/MediaTrack: Use MetaData API internally

This commit is contained in:
Barrett17 2018-11-21 17:24:33 +01:00
parent 854c698a52
commit b1c8bb2c46
2 changed files with 6 additions and 2 deletions

View File

@ -356,7 +356,9 @@ BMediaFile::AddCopyright(const char* copyright)
if (fWriter == NULL) if (fWriter == NULL)
return B_NO_INIT; return B_NO_INIT;
return fWriter->SetCopyright(copyright); BMetaData* data = new BMetaData();
data->SetString(kCopyright, copyright);
return fWriter->SetMetaData(data);
} }

View File

@ -631,7 +631,9 @@ BMediaTrack::AddCopyright(const char* copyright)
if (fWriter == NULL) if (fWriter == NULL)
return B_NO_INIT; return B_NO_INIT;
return fWriter->SetCopyright(fStream, copyright); BMetaData* data = new BMetaData();
data->SetString(kCopyright, copyright);
return fWriter->SetMetaData(data);
} }