On Wed Nov 16 11:35:38 2022 +0000, Anton Baskanov wrote:
The name is probably misleading, but transform_cleanup_stream() is called from IMediaFilter::Stop() in strmbase. The filter graph stops filters beginning from renderers and going upstream, so the streaming thread will still be active when transform_cleanup_stream() is called and until the parser is stopped.
The patch is definitely not pretty, but it works, and solving this in a better way is hard and needs more thought.