зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1667728 - Ensure the Muxer doesn't have metadata set more than once. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D91726
This commit is contained in:
Родитель
0c7e9d79f3
Коммит
a37ba69f3d
|
@ -19,6 +19,9 @@ bool Muxer::IsFinished() { return mWriter->IsWritingComplete(); }
|
||||||
|
|
||||||
nsresult Muxer::SetMetadata(
|
nsresult Muxer::SetMetadata(
|
||||||
const nsTArray<RefPtr<TrackMetadataBase>>& aMetadata) {
|
const nsTArray<RefPtr<TrackMetadataBase>>& aMetadata) {
|
||||||
|
MOZ_DIAGNOSTIC_ASSERT(!mMetadataSet);
|
||||||
|
MOZ_DIAGNOSTIC_ASSERT(!mHasAudio);
|
||||||
|
MOZ_DIAGNOSTIC_ASSERT(!mHasVideo);
|
||||||
nsresult rv = mWriter->SetMetadata(aMetadata);
|
nsresult rv = mWriter->SetMetadata(aMetadata);
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
LOG(LogLevel::Error, "%p Setting metadata failed, tracks=%zu", this,
|
LOG(LogLevel::Error, "%p Setting metadata failed, tracks=%zu", this,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче