On Wed Oct 25 18:36:26 2023 +0000, Yuxuan Shui wrote:
I think this can be part of !4133
So I had a think. It seems to be a bad idea in general to call potentially user controlled code (like `_OnProcessSample`, or `IMFMediaSink_Shutdown`) while holding a lock.
Because the code we call into can do anything, this would be a minefield of recursive locks, and lock inversions. I think it might be a good idea to avoid doing this altogether.
@nsivov do you think this is the right direction?