Changeset 186094 in webkit


Ignore:
Timestamp:
Jun 29, 2015 4:14:45 PM (9 years ago)
Author:
mrajca@apple.com
Message:

Removing an element from a media session should also remove it from the sets of active participating elements
https://bugs.webkit.org/show_bug.cgi?id=146420

Reviewed by Eric Carlson.

  • Modules/mediasession/MediaSession.cpp:

(WebCore::MediaSession::removeMediaElement):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r186091 r186094  
     12015-06-29  Matt Rajca  <mrajca@apple.com>
     2
     3        Removing an element from a media session should also remove it from the sets of active participating elements
     4        https://bugs.webkit.org/show_bug.cgi?id=146420
     5
     6        Reviewed by Eric Carlson.
     7
     8        * Modules/mediasession/MediaSession.cpp:
     9        (WebCore::MediaSession::removeMediaElement):
     10
    1112015-06-29  Dean Jackson  <dino@apple.com>
    212
  • trunk/Source/WebCore/Modules/mediasession/MediaSession.cpp

    r186084 r186094  
    115115    ASSERT(m_participatingElements.contains(&element));
    116116    m_participatingElements.remove(&element);
     117
     118    m_activeParticipatingElements.remove(&element);
     119    if (m_iteratedActiveParticipatingElements)
     120        m_iteratedActiveParticipatingElements->remove(&element);
    117121}
    118122
Note: See TracChangeset for help on using the changeset viewer.