RESOLVED FIXED 133762
[Win] Avoid deadlock with AVFoundation
https://bugs.webkit.org/show_bug.cgi?id=133762
Summary [Win] Avoid deadlock with AVFoundation
Brent Fulgham
Reported 2014-06-11 13:54:37 PDT
If WebKit is allowed to loop various kinds of media content for long periods of time, we sometimes run into a deadlock between AVFoundationCF and the AVFWrapper mutex used to protect individual AVF playback instances. This deadlock happens because in some cases a notification will trigger on the main thread, which will immediately begin executing handler content without releasing the AVFWrapper container mutex used to prevent deleting AVFWrapper instances while they are still being used. For Windows, we should tell WebKit to always invoke these handlers asynchronously so that we do not encounter this deadlock.
Attachments
Patch (1.74 KB, patch)
2014-06-11 14:03 PDT, Brent Fulgham
eric.carlson: review+
Brent Fulgham
Comment 1 2014-06-11 14:03:20 PDT
Brent Fulgham
Comment 2 2014-06-11 14:04:15 PDT
Brent Fulgham
Comment 3 2014-06-11 14:41:28 PDT
Note: The EWS error is due to a problem on the build machine, not this patch.
Brent Fulgham
Comment 4 2014-06-11 14:45:34 PDT
Note You need to log in before you can comment on or make changes to this bug.