зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1388612. P2 - remove the call to NotifySuspendedStatusChanged() in MediaDecoder::FirstFrameLoaded(). r=gerald
Following P1, cache suspend status changes will be notified when necessary. If not, it would be a bug that should be fixed. We shouldn't wallpaper the issue by calling NotifySuspendedStatusChanged() manually. MozReview-Commit-ID: 9EbybTiOOIO --HG-- extra : rebase_source : 299e22c6813f4eeb152c4d8140dc295ff856dc1e extra : source : 2b18fe0368c6332d0b5c1e044218a26c75314124
This commit is contained in:
Родитель
af3ce851d6
Коммит
ab74a61674
|
@ -822,10 +822,6 @@ MediaDecoder::FirstFrameLoaded(nsAutoPtr<MediaInfo> aInfo,
|
|||
ChangeState(mNextState);
|
||||
}
|
||||
|
||||
// Run NotifySuspendedStatusChanged now to give us a chance to notice
|
||||
// that autoplay should run.
|
||||
NotifySuspendedStatusChanged();
|
||||
|
||||
// GetOwner()->FirstFrameLoaded() might call us back. Put it at the bottom of
|
||||
// this function to avoid unexpected shutdown from reentrant calls.
|
||||
if (aEventVisibility != MediaDecoderEventVisibility::Suppressed) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче