On Mon Jun 23 10:09:37 2025 +0000, Conor McCarthy wrote:
I wasn't able to prove it uses a callback, but it definitely has some means for notifying the session, and it wasn't the event queue.
Official code samples for Media Foundation sources do not have anything like that. If there is a pending request we could respond with MEMediaSample(MF_E_SHUTDOWN), and any following RequestSample will return MF_E_SHUTDOWN. Is this not enough?