From 9aabe6d2e7dda3d27da911d96516eacbbc89a074 Mon Sep 17 00:00:00 2001 From: JW Wang Date: Tue, 9 Jan 2018 17:49:53 +0800 Subject: [PATCH] Bug 1429009. P2 - remove unnecessary AbstractThread::AutoEnter. r=bechen,gerald It is not needed since we are already in the right context. MozReview-Commit-ID: 6QXxLMQHavv --HG-- extra : rebase_source : d7a80d3e3d6583bd1732a4048f40576603e83872 extra : source : d700cc52ce2a50a784601f7cff7f63eaff3efced --- dom/media/ChannelMediaDecoder.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/dom/media/ChannelMediaDecoder.cpp b/dom/media/ChannelMediaDecoder.cpp index 6c4d1a26005f..b8c0f3cae2a3 100644 --- a/dom/media/ChannelMediaDecoder.cpp +++ b/dom/media/ChannelMediaDecoder.cpp @@ -439,7 +439,6 @@ ChannelMediaDecoder::DownloadProgressed() mCanPlayThrough = aStats.CanPlayThrough(); GetStateMachine()->DispatchCanPlayThrough(mCanPlayThrough); mResource->ThrottleReadahead(ShouldThrottleDownload(aStats)); - AbstractThread::AutoEnter context(AbstractMainThread()); // Update readyState since mCanPlayThrough might have changed. GetOwner()->UpdateReadyState(); },