⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 203502 in webkit


Ignore:
Timestamp:
Jul 21, 2016, 6:03:16 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] The GSTREAMER_GL path in MediaPlayerPrivateGStreamerBase::paintToTextureMapper() is missing a mutex lock
​https://bugs.webkit.org/show_bug.cgi?id=160018

Patch by Miguel Gomez <​magomez@igalia.com> on 2016-07-21
Reviewed by Philippe Normand.

Lock the video sample mutex while accessing it.

Covered by existent tests.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:

(WebCore::MediaPlayerPrivateGStreamerBase::paintToTextureMapper):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r203498 r203502  
     12016-07-21  Miguel Gomez  <magomez@igalia.com>
     2
     3        [GTK] The GSTREAMER_GL path in MediaPlayerPrivateGStreamerBase::paintToTextureMapper() is missing a mutex lock
     4        https://bugs.webkit.org/show_bug.cgi?id=160018
     5
     6        Reviewed by Philippe Normand.
     7
     8        Lock the video sample mutex while accessing it.
     9
     10        Covered by existent tests.
     11
     12        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
     13        (WebCore::MediaPlayerPrivateGStreamerBase::paintToTextureMapper):
     14
    1152016-07-21  Miguel Gomez  <magomez@igalia.com>
    216
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp

    r203159 r203502  
    660660
    661661#if USE(GSTREAMER_GL)
     662    WTF::GMutexLocker<GMutex> lock(m_sampleMutex);
     663
    662664    GstVideoInfo videoInfo;
    663665    if (!getSampleVideoInfo(m_sample.get(), videoInfo))
Note: See TracChangeset for help on using the changeset viewer.