Bug 1408294 - Assert that we don't underrun globally. r?padenot
MozReview-Commit-ID: 1vEN1K1TK5n
--- a/dom/media/GraphDriver.cpp
+++ b/dom/media/GraphDriver.cpp
@@ -953,17 +953,18 @@ AudioCallbackDriver::DataCallback(const
(long)nextStateComputedTime,
(long)aFrames,
(uint32_t)durationMS,
(long)(nextStateComputedTime - stateComputedTime)));
mCurrentTimeStamp = TimeStamp::Now();
if (stateComputedTime < mIterationEnd) {
- LOG(LogLevel::Warning, ("Media graph global underrun detected"));
+ LOG(LogLevel::Error, ("Media graph global underrun detected"));
+ MOZ_ASSERT_UNREACHABLE("We should not underrun in full duplex");
mIterationEnd = stateComputedTime;
}
// Process mic data if any/needed
if (aInputBuffer) {
if (mAudioInput) { // for this specific input-only or full-duplex stream
mAudioInput->NotifyInputData(mGraphImpl, aInputBuffer,
static_cast<size_t>(aFrames),