Changeset 247383 in webkit


Ignore:
Timestamp:
Jul 11, 2019 9:36:59 PM (5 years ago)
Author:
Chris Dumez
Message:

Fix non-thread safe use of makeWeakPtr() under MediaPlayerPrivateMediaFoundation::CustomVideoPresenter::processInputNotify()
https://bugs.webkit.org/show_bug.cgi?id=199727

Reviewed by Eric Carlson.

Stop calling makeWeakPtr() on a main thread object from a background thread.

  • platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:

(WebCore::MediaPlayerPrivateMediaFoundation::CustomVideoPresenter::processInputNotify):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r247382 r247383  
     12019-07-11  Chris Dumez  <cdumez@apple.com>
     2
     3        Fix non-thread safe use of makeWeakPtr() under MediaPlayerPrivateMediaFoundation::CustomVideoPresenter::processInputNotify()
     4        https://bugs.webkit.org/show_bug.cgi?id=199727
     5
     6        Reviewed by Eric Carlson.
     7
     8        Stop calling makeWeakPtr() on a main thread object from a background thread.
     9
     10        * platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
     11        (WebCore::MediaPlayerPrivateMediaFoundation::CustomVideoPresenter::processInputNotify):
     12
    1132019-07-11  Youenn Fablet  <youenn@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp

    r247354 r247383  
    15901590    // Invalidate the video area
    15911591    if (m_mediaPlayer) {
    1592         callOnMainThread([weakPtr = makeWeakPtr(*m_mediaPlayer)] {
     1592        callOnMainThread([weakPtr = m_mediaPlayer->m_weakThis] {
    15931593            if (weakPtr)
    15941594                weakPtr->invalidateFrameView();
Note: See TracChangeset for help on using the changeset viewer.