[Webkit-unassigned] [Bug 147085] -[AVPlayerItem currentTime] and -[AVPlayer isExternalPlaybackActive] deadlock

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 18 23:48:59 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147085

Ada Chan <adachan at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|webkit-unassigned at lists.web |adachan at apple.com
                   |kit.org                     |

--- Comment #2 from Ada Chan <adachan at apple.com> ---
Eric Carlson suggested this change:

 void AudioContext::isPlayingAudioDidChange()
 {
-    document()->updateIsPlayingMedia();
+    RefPtr<AudioContext> strongThis(this);
+    callOnMainThread([strongThis] {
+        strongThis->document()->updateIsPlayingMedia();
+    });
 }

I could reproduce this deadlock before this change, and could not reproduce the deadlock anymore after this change.

Posting a patch very soon.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150719/83db2dfd/attachment.html>


More information about the webkit-unassigned mailing list