Bug 1123492 - Remove ResetDecode() call from MediaSourceReader::AttemptSeek(). r=mattwoodrow, a=abillings
authorKarl Tomlinson <karlt+@karlt.net>
Tue, 17 Feb 2015 14:35:47 +1300
changeset 250262 00bad6e2ffbc
parent 250261 ad9c778e7bb8
child 250263 be7287dc2c9a
child 250268 828228a012dc
push id4527
push userryanvm@gmail.com
push date2015-03-05 16:09 +0000
treeherdermozilla-beta@00bad6e2ffbc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow, abillings
bugs1123492
milestone37.0
Bug 1123492 - Remove ResetDecode() call from MediaSourceReader::AttemptSeek(). r=mattwoodrow, a=abillings and this was already called before Seek().
dom/media/mediasource/MediaSourceReader.cpp
--- a/dom/media/mediasource/MediaSourceReader.cpp
+++ b/dom/media/mediasource/MediaSourceReader.cpp
@@ -861,18 +861,16 @@ MediaSourceReader::AttemptSeek()
     if (!TrackBuffersContainTime(mPendingSeekTime)) {
       mVideoSourceDecoder = nullptr;
       mAudioSourceDecoder = nullptr;
       return;
     }
     mWaitingForSeekData = false;
   }
 
-  ResetDecode();
-
   // Decoding discontinuity upon seek, reset last times to seek target.
   mLastAudioTime = mPendingSeekTime;
   mLastVideoTime = mPendingSeekTime;
 
   if (mVideoTrack) {
     DoVideoSeek();
   } else if (mAudioTrack) {
     DoAudioSeek();