Bug 1662210 - Remove dead MediaKeys code from MediaElement's SuspendOrResumeElement. r=jolin

Differential Revision: https://phabricator.services.mozilla.com/D88887
This commit is contained in:
Bryce Seager van Dyk
2020-08-31 18:19:18 +00:00
parent 7376327879
commit 68d28a5022

View File

@@ -6508,15 +6508,6 @@ void HTMLMediaElement::SuspendOrResumeElement(bool aSuspendElement) {
mCurrentLoadPlayTime.Pause();
ReportTelemetry();
// For EME content, we may force destruction of the CDM client (and CDM
// instance if this is the last client for that CDM instance) and
// the CDM's decoder. This ensures the CDM gets reliable and prompt
// shutdown notifications, as it may have book-keeping it needs
// to do on shutdown.
if (mMediaKeys) {
nsAutoString keySystem;
mMediaKeys->GetKeySystem(keySystem);
}
if (mDecoder) {
mDecoder->Pause();
mDecoder->Suspend();