MediaFile/MediaTrack: Use MetaData API internally
This commit is contained in:
parent
854c698a52
commit
b1c8bb2c46
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user