[Git][wine/wine][master] 2 commits: mf: Remove periodic callback on clock shutdown.
Alexandre Julliard pushed to branch master at wine / wine Commits: c71658f9 by Brendan McGrath at 2026-05-11T16:23:12+02:00 mf: Remove periodic callback on clock shutdown. - - - - - c771f173 by Brendan McGrath at 2026-05-11T16:23:12+02:00 mf: Call GetCorrelatedTime without critical section. When SAR is the time source, the call to GetCorrelatedTime will result in an attempt to acquire SAR's critical section. This means this thread will hold the presentation clock critical section and then attempt to obtain SARs critical section. However, if SAR is in the process of shutdown in a parallel thread, then that thread will already hold the SAR critical section and call IMFPresentationClock::RemoveClockStateSink. This will attempt to acquire the presentation clock critical section. In other words, we have two threads trying to acquire the same two critical sections in the opposite order. The result is both threads waiting on the other and thus a deadlock. This commit resolves the deadlock by ensuring the presentation clock does not hold its own critical section when calling GetCorrelatedTime. - - - - - 1 changed file: - dlls/mf/clock.c View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/363e3e0ec175fcbc5d40baa5f3a113... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/363e3e0ec175fcbc5d40baa5f3a113... You're receiving this email because of your account on gitlab.winehq.org. Manage all notifications: https://gitlab.winehq.org/-/profile/notifications | Help: https://gitlab.winehq.org/help
participants (1)
-
Alexandre Julliard (@julliard)