Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1235966 - reset mAudioCompleted and mVideoCompleted when switchin…
Browse files Browse the repository at this point in the history
…g MediaSink so they are resolved by the new MediaSink. r=kikuo.
  • Loading branch information
jwwang committed Jan 12, 2016
1 parent 18d76ac commit 66776f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dom/media/MediaDecoderStateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,12 @@ MediaDecoderStateMachine::SetAudioCaptured(bool aCaptured)
return;
}

// Rest these flags so they are consistent with the status of the sink.
// TODO: Move these flags into MediaSink to improve cohesion so we don't need
// to reset these flags when switching MediaSinks.
mAudioCompleted = false;
mVideoCompleted = false;

// Backup current playback parameters.
MediaSink::PlaybackParams params = mMediaSink->GetPlaybackParams();

Expand Down

0 comments on commit 66776f8

Please sign in to comment.