Bug 1159456 finish and exit from Flush() even if MFTManager rejects sample r=cpearce a=lizzard
authorKarl Tomlinson <karlt+@karlt.net>
Wed, 29 Apr 2015 04:36:13 +1200
changeset 267373 99df7384dfc24770b624739ad17f90a5a08d66a5
parent 267372 a98e1b306051cb5f5bcb3719c4f85b6797c49e15
child 267374 a02734fe6137255e861f39932874977f4800675a
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, lizzard
bugs1159456
milestone39.0a2
Bug 1159456 finish and exit from Flush() even if MFTManager rejects sample r=cpearce a=lizzard
dom/media/fmp4/wmf/WMFMediaDataDecoder.cpp
--- a/dom/media/fmp4/wmf/WMFMediaDataDecoder.cpp
+++ b/dom/media/fmp4/wmf/WMFMediaDataDecoder.cpp
@@ -129,17 +129,17 @@ WMFMediaDataDecoder::Decode()
     HRESULT hr = mMFTManager->Input(input);
     if (FAILED(hr)) {
       NS_WARNING("MFTManager rejected sample");
       {
         MonitorAutoLock mon(mMonitor);
         PurgeInputQueue();
       }
       mCallback->Error();
-      return;
+      continue; // complete flush if flushing
     }
 
     mLastStreamOffset = input->byte_offset;
 
     ProcessOutput();
   }
 }