summaryrefslogtreecommitdiff
path: root/dom/media/MediaFormatReader.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-04-21 14:39:44 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-04-21 14:39:44 -0500
commit1ea6ae4ddbb56ace7496e05160e61c4fb8ad9a21 (patch)
tree407a206f5a06ea4e0c3ae0ee5f0dee135575ef21 /dom/media/MediaFormatReader.cpp
parentb5cf6b9b3f577ad7d08205dab34cf4a812088fde (diff)
downloadaura-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.cpp10
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) &&