diff --git a/src/kits/media/MediaFile.cpp b/src/kits/media/MediaFile.cpp index f04dc7121f..23cfe3cb6e 100644 --- a/src/kits/media/MediaFile.cpp +++ b/src/kits/media/MediaFile.cpp @@ -356,7 +356,9 @@ BMediaFile::AddCopyright(const char* copyright) if (fWriter == NULL) return B_NO_INIT; - return fWriter->SetCopyright(copyright); + BMetaData* data = new BMetaData(); + data->SetString(kCopyright, copyright); + return fWriter->SetMetaData(data); } diff --git a/src/kits/media/MediaTrack.cpp b/src/kits/media/MediaTrack.cpp index fe5f76131e..496e6395a4 100644 --- a/src/kits/media/MediaTrack.cpp +++ b/src/kits/media/MediaTrack.cpp @@ -631,7 +631,9 @@ BMediaTrack::AddCopyright(const char* copyright) if (fWriter == NULL) return B_NO_INIT; - return fWriter->SetCopyright(fStream, copyright); + BMetaData* data = new BMetaData(); + data->SetString(kCopyright, copyright); + return fWriter->SetMetaData(data); }