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

Changeset 238561 in webkit


Ignore:
Timestamp:
Nov 27, 2018, 11:34:06 AM (8 years ago)
Author:
jer.noble@apple.com
Message:

Unregister CDMSessionMediaSourceAVFObjC for error notifications during destruction.
https://bugs.webkit.org/show_bug.cgi?id=191985
<rdar://problem/45972018>

Reviewed by Eric Carlson.

  • platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:

(WebCore::CDMSessionMediaSourceAVFObjC::~CDMSessionMediaSourceAVFObjC):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r238557 r238561  
     12018-11-27  Jer Noble  <jer.noble@apple.com>
     2
     3        Unregister CDMSessionMediaSourceAVFObjC for error notifications during destruction.
     4        https://bugs.webkit.org/show_bug.cgi?id=191985
     5        <rdar://problem/45972018>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
     10        (WebCore::CDMSessionMediaSourceAVFObjC::~CDMSessionMediaSourceAVFObjC):
     11
    1122018-11-27  Thibault Saunier  <tsaunier@igalia.com>
    213
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm

    r224371 r238561  
    4646    if (m_cdm)
    4747        m_cdm->invalidateSession(this);
     48
     49    for (auto& sourceBuffer : m_sourceBuffers)
     50        sourceBuffer->unregisterForErrorNotifications(this);
     51    m_sourceBuffers.clear();
    4852}
    4953
Note: See TracChangeset for help on using the changeset viewer.