On Wed Nov 20 14:18:24 2024 +0000, Conor McCarthy wrote:
This would need tests, especially in the light of the documentation
and example links above. It would not be externally visible because media source `Begin/EndGetEvent()` etc will return MF_E_SHUTDOWN if source shutdown has occurred.
Perhaps but it still feels brittle that fixing the media session requires some cooperation from the media source.
Some tests with a mock media source that doesn't send any event in response to IMFMediaSource_Start, and making the same media session calls as the game would show if the session is able to handle the missing events or not.
If native is indeed hanging too in that scenario, then yes the media source would also need some changes. Otherwise they don't seem necessary.