Skip to content

mfmediaengine: Be a bit more conservative with locks in engine Shutdown.

Yuxuan Shui requested to merge yshui/wine:mf-engine-lock into master

During engine shutdown we acquire engine lock first, then locks of its constituents (e.g. sample grabbers); whereas normally the order is the other way around (e.g. timer callback -> acquire sample grabber lock -> OnProcessSample callback -> engine lock). This is deadlock prone.

With this commit, engine lock is released before we shutdown the inner media session.

Merge request reports

Loading