Bug 1905022 Comment 46 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Alastor Wu [:alwu] from comment #45)
> As I couldn't reproduce this issue on my side, I couldn't test it on my own build. Sotaro, when you are able to reproduce the issue, what happen inside `WMFMediaDataDecoder::ProcessOutput`?

Yes, I could reproduce the problem with local build.  

> As the code iterates [`mMFTManager->Output()`](https://searchfox.org/mozilla-central/rev/1cc09ebc0b32f69fd30057582671b0811f2cb9c8/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp#146), I wonder what are those output result when it's stuck?

The result was always S_OK.

> if it keeps stuck in the loop, does it mean that [`WMFVideoMFTManager::Output()`](https://searchfox.org/mozilla-central/rev/1cc09ebc0b32f69fd30057582671b0811f2cb9c8/dom/media/platforms/wmf/WMFVideoMFTManager.cpp#801) keeps returning ok but no output sample is returned? could you help me check where the code stuck?

When  the problem happened, [IMFTransform::ProcessOutput()](https://searchfox.org/mozilla-central/rev/a95ca2357da6bccc6c5b12f662dd8a4e5bcbf892/dom/media/platforms/wmf/MFTDecoder.cpp#334) stuck under [WMFVideoMFTManager::Output()](https://searchfox.org/mozilla-central/rev/a95ca2357da6bccc6c5b12f662dd8a4e5bcbf892/dom/media/platforms/wmf/WMFVideoMFTManager.cpp#810).
(In reply to Alastor Wu [:alwu] from comment #45)
> As I couldn't reproduce this issue on my side, I couldn't test it on my own build. Sotaro, when you are able to reproduce the issue, what happen inside `WMFMediaDataDecoder::ProcessOutput`?

Yes, I could reproduce the problem with local build.  

> As the code iterates [`mMFTManager->Output()`](https://searchfox.org/mozilla-central/rev/1cc09ebc0b32f69fd30057582671b0811f2cb9c8/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp#146), I wonder what are those output result when it's stuck?

The result was always S_OK.

> if it keeps stuck in the loop, does it mean that [`WMFVideoMFTManager::Output()`](https://searchfox.org/mozilla-central/rev/1cc09ebc0b32f69fd30057582671b0811f2cb9c8/dom/media/platforms/wmf/WMFVideoMFTManager.cpp#801) keeps returning ok but no output sample is returned? could you help me check where the code stuck?

When  the problem happened, [IMFTransform::ProcessOutput()](https://searchfox.org/mozilla-central/rev/a95ca2357da6bccc6c5b12f662dd8a4e5bcbf892/dom/media/platforms/wmf/MFTDecoder.cpp#334) was called 13 times and stuck under [WMFVideoMFTManager::Output()](https://searchfox.org/mozilla-central/rev/a95ca2357da6bccc6c5b12f662dd8a4e5bcbf892/dom/media/platforms/wmf/WMFVideoMFTManager.cpp#810).
(In reply to Alastor Wu [:alwu] from comment #45)
> As I couldn't reproduce this issue on my side, I couldn't test it on my own build. Sotaro, when you are able to reproduce the issue, what happen inside `WMFMediaDataDecoder::ProcessOutput`?

Yes, I could reproduce the problem with local build.  

> As the code iterates [`mMFTManager->Output()`](https://searchfox.org/mozilla-central/rev/1cc09ebc0b32f69fd30057582671b0811f2cb9c8/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp#146), I wonder what are those output result when it's stuck?

The result was always S_OK.

> if it keeps stuck in the loop, does it mean that [`WMFVideoMFTManager::Output()`](https://searchfox.org/mozilla-central/rev/1cc09ebc0b32f69fd30057582671b0811f2cb9c8/dom/media/platforms/wmf/WMFVideoMFTManager.cpp#801) keeps returning ok but no output sample is returned? could you help me check where the code stuck?

When  the problem happened, [WMFVideoMFTManager::Output()](https://searchfox.org/mozilla-central/rev/a95ca2357da6bccc6c5b12f662dd8a4e5bcbf892/dom/media/platforms/wmf/WMFVideoMFTManager.cpp#810) was called 13 times and stuck at [IMFTransform::ProcessOutput()](https://searchfox.org/mozilla-central/rev/a95ca2357da6bccc6c5b12f662dd8a4e5bcbf892/dom/media/platforms/wmf/MFTDecoder.cpp#334)
(In reply to Alastor Wu [:alwu] from comment #45)
> As I couldn't reproduce this issue on my side, I couldn't test it on my own build. Sotaro, when you are able to reproduce the issue, what happen inside `WMFMediaDataDecoder::ProcessOutput`?

Yes, I could reproduce the problem with local build.  

> As the code iterates [`mMFTManager->Output()`](https://searchfox.org/mozilla-central/rev/1cc09ebc0b32f69fd30057582671b0811f2cb9c8/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp#146), I wonder what are those output result when it's stuck?

The result was always S_OK with valid video frame.

> if it keeps stuck in the loop, does it mean that [`WMFVideoMFTManager::Output()`](https://searchfox.org/mozilla-central/rev/1cc09ebc0b32f69fd30057582671b0811f2cb9c8/dom/media/platforms/wmf/WMFVideoMFTManager.cpp#801) keeps returning ok but no output sample is returned? could you help me check where the code stuck?

When  the problem happened, [WMFVideoMFTManager::Output()](https://searchfox.org/mozilla-central/rev/a95ca2357da6bccc6c5b12f662dd8a4e5bcbf892/dom/media/platforms/wmf/WMFVideoMFTManager.cpp#810) was called 13 times and stuck at [IMFTransform::ProcessOutput()](https://searchfox.org/mozilla-central/rev/a95ca2357da6bccc6c5b12f662dd8a4e5bcbf892/dom/media/platforms/wmf/MFTDecoder.cpp#334)

Back to Bug 1905022 Comment 46