diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index 8eb8ee98d8a0..82f4ed7e6108 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -642,7 +642,6 @@ double MediaDecoder::GetCurrentTime() { void MediaDecoder::OnMetadataUpdate(TimedMetadata&& aMetadata) { MOZ_ASSERT(NS_IsMainThread()); AbstractThread::AutoEnter context(AbstractMainThread()); - GetOwner()->RemoveMediaTracks(); MetadataLoaded(MakeUnique(*aMetadata.mInfo), UniquePtr(std::move(aMetadata.mTags)), MediaDecoderEventVisibility::Observable);