Bug 1112519 - Clear mDropVideoUntilNextDiscontinuity when we do not seek. r=cpearce, a=lmandel
authorSotaro Ikeda <sikeda@mozilla.com>
Tue, 03 Feb 2015 12:53:12 -0800
changeset 249729 d28a934ef786ae9b7e12df06965c580375634398
parent 249728 d2fad87c4e0269fc0c470a6042c1808ad3221fef
child 249730 ae9e003dc9c41b69df75b5b0e6084f9e664d0c60
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, lmandel
bugs1112519
milestone37.0a2
Bug 1112519 - Clear mDropVideoUntilNextDiscontinuity when we do not seek. r=cpearce, a=lmandel
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -2493,16 +2493,18 @@ void MediaDecoderStateMachine::DecodeSee
     // May have shutdown while we released the monitor.
     return;
   }
 
   mDecodeToSeekTarget = false;
 
   if (!currentTimeChanged) {
     DECODER_LOG("Seek !currentTimeChanged...");
+    mDropAudioUntilNextDiscontinuity = false;
+    mDropVideoUntilNextDiscontinuity = false;
     nsresult rv = DecodeTaskQueue()->Dispatch(
       NS_NewRunnableMethod(this, &MediaDecoderStateMachine::SeekCompleted));
     if (NS_FAILED(rv)) {
       DecodeError();
     }
   } else {
     // The seek target is different than the current playback position,
     // we'll need to seek the playback position, so shutdown our decode