diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-04-21 14:39:44 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-04-21 14:39:44 -0500 |
commit | 1ea6ae4ddbb56ace7496e05160e61c4fb8ad9a21 (patch) | |
tree | 407a206f5a06ea4e0c3ae0ee5f0dee135575ef21 /dom/media/MediaFormatReader.cpp | |
parent | b5cf6b9b3f577ad7d08205dab34cf4a812088fde (diff) | |
download | aura-central-1ea6ae4ddbb56ace7496e05160e61c4fb8ad9a21.tar.gz |
Issue #25 - Part 15: Remove DOM Media code relating to the WAIT_FOR_CDM state
Diffstat (limited to 'dom/media/MediaFormatReader.cpp')
-rw-r--r-- | dom/media/MediaFormatReader.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/dom/media/MediaFormatReader.cpp b/dom/media/MediaFormatReader.cpp index 8e872dd04..411b84e09 100644 --- a/dom/media/MediaFormatReader.cpp +++ b/dom/media/MediaFormatReader.cpp @@ -577,12 +577,6 @@ MediaFormatReader::InitInternal() return NS_OK; } -bool -MediaFormatReader::IsWaitingOnCDMResource() { - MOZ_ASSERT(OnTaskQueue()); - return false; -} - RefPtr<MediaDecoderReader::MetadataPromise> MediaFormatReader::AsyncReadMetadata() { @@ -618,9 +612,7 @@ MediaFormatReader::OnDemuxerInitDone(nsresult) UniquePtr<MetadataTags> tags(MakeUnique<MetadataTags>()); RefPtr<PDMFactory> platform; - if (!IsWaitingOnCDMResource()) { - platform = new PDMFactory(); - } + platform = new PDMFactory(); // To decode, we need valid video and a place to put it. bool videoActive = !!mDemuxer->GetNumberTracks(TrackInfo::kVideoTrack) && |