[Webkit-unassigned] [Bug 185244] New: [EME][GStreamer] Crash when the mediaKeys created before loading the media in debug conf

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 3 02:29:10 PDT 2018


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

            Bug ID: 185244
           Summary: [EME][GStreamer] Crash when the mediaKeys created
                    before loading the media in debug conf
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bandou.yacine at gmail.com
                CC: calvaris at igalia.com, olivier.blin at softathome.com

The function "MediaPlayerPrivateGStreamerBase::cdmInstanceAttached" is expected to be called once, so there is an ASSERT(!m_cdmInstance).
But when the MediaKeys created before loading the media, the cdminstance is created and attached to the MediaPlayerPrivate via
"MediaPlayerPrivateGStreamerBase::cdmInstanceAttached" before laoding the media.

Then when the media is loading, the function "MediaPlayerPrivateGStreamerBase::cdmInstanceAttached" will be called several times via
the function "mediaEngineWasUpdated" wich is called for each change in the state of the MediaElement, thus the WebProcess
crashes in the ASSERT(!m_cdmInstance).

To Avoid the crash we replace the Assert with a simple check.

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


More information about the webkit-unassigned mailing list