bug 1123492 remove ResetDecode() call from MediaSourceReader::AttemptSeek() r=mattwoodrow
authorKarl Tomlinson <karlt+@karlt.net>
Tue, 17 Feb 2015 14:35:47 +1300
changeset 246919 d782f26328162bbcbef4fc18552632ee30376b4c
parent 246918 5065a5f34d356910eddc5cc12d072483c81c7131
child 246920 c3732d9a9abe57a1e544a309fecf7162d6640743
push id884
push userdburns@mozilla.com
push dateTue, 03 Mar 2015 15:29:12 +0000
reviewersmattwoodrow
bugs1123492
milestone39.0a1
bug 1123492 remove ResetDecode() call from MediaSourceReader::AttemptSeek() r=mattwoodrow and this was already called before Seek().
dom/media/mediasource/MediaSourceReader.cpp
--- a/dom/media/mediasource/MediaSourceReader.cpp
+++ b/dom/media/mediasource/MediaSourceReader.cpp
@@ -869,18 +869,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();