Eliminate initial notifies

Not really needed or helpful for our use.
This commit is contained in:
trav90
2017-04-17 02:15:20 -05:00
committed by roytam1
parent 793ff3cd33
commit d77ea08468
2 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -269,8 +269,8 @@ MediaDecoderStateMachine::MediaDecoderStateMachine(MediaDecoder* aDecoder,
// Skip the initial notification we get when we Watch the value, since we're
// not on the right thread yet.
mNextFrameStatusUpdater->Watch(mState, /* aSkipInitialNotify = */ true);
mNextFrameStatusUpdater->Watch(mAudioCompleted, /* aSkipInitialNotify = */ true);
mNextFrameStatusUpdater->Watch(mState);
mNextFrameStatusUpdater->Watch(mAudioCompleted);
mNextFrameStatusUpdater->AddWeakCallback(this, &MediaDecoderStateMachine::UpdateNextFrameStatus);
static bool sPrefCacheInit = false;