commit 05bb5dc3f9b79ec5464f0508c71413b42a52b704
parent 41aeb796a64523a8dad142bffcf07f339810ec2d
Author: Chun-Min Chang <chun.m.chang@gmail.com>
Date: Sat, 25 Oct 2025 01:01:04 +0000
Bug 1995664 - Correct comment r=media-playback-reviewers,alwu,azebrowski
Differential Revision: https://phabricator.services.mozilla.com/D269526
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dom/media/platforms/wmf/MFTEncoder.cpp b/dom/media/platforms/wmf/MFTEncoder.cpp
@@ -1251,9 +1251,9 @@ void MFTEncoder::EventHandler(MediaEventType aEventType, HRESULT aStatus) {
mPendingInputs.size(), mNumNeedInput, mOutputs.Length());
switch (result) {
case ProcessedResult::AllAvailableInputsProcessed:
- // Since mNumNeedInput was incremented in ProcessInput(), a result
- // indicating no input was processed means there were not enough pending
- // inputs in the queue.
+ // Since mNumNeedInput was incremented in ProcessEvent(), before calling
+ // ProcessInput(), a result indicating no input was processed means there
+ // were not enough pending inputs in the queue.
MOZ_ASSERT(mPendingInputs.empty());
// If EventHandler is in the PreDraining state here, it means there were
// pending inputs to process before draining started. Processing those