Changeset 185962 in webkit


Ignore:
Timestamp:
Jun 25, 2015, 2:00:25 PM (10 years ago)
Author:
eric.carlson@apple.com
Message:

[Mac] Crash in WebCore::MediaPlayer::canPlayToWirelessPlaybackTarget
https://bugs.webkit.org/show_bug.cgi?id=146317

Reviewed by Brent Fulgham.

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::mediaState): NULL-check m_player before using it.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r185960 r185962  
     12015-06-25  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [Mac] Crash in WebCore::MediaPlayer::canPlayToWirelessPlaybackTarget
     4        https://bugs.webkit.org/show_bug.cgi?id=146317
     5
     6        Reviewed by Brent Fulgham.
     7
     8        * html/HTMLMediaElement.cpp:
     9        (WebCore::HTMLMediaElement::mediaState): NULL-check m_player before using it.
     10
    1112015-06-25  Commit Queue  <commit-queue@webkit.org>
    212
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r185840 r185962  
    63186318        state |= IsPlayingToExternalDevice;
    63196319
    6320     if (!m_mediaSession->wirelessVideoPlaybackDisabled(*this) && m_hasPlaybackTargetAvailabilityListeners && m_player->canPlayToWirelessPlaybackTarget())
     6320    if (m_player && m_hasPlaybackTargetAvailabilityListeners && !m_mediaSession->wirelessVideoPlaybackDisabled(*this) && m_player->canPlayToWirelessPlaybackTarget())
    63216321        state |= RequiresPlaybackTargetMonitoring;
    63226322
Note: See TracChangeset for help on using the changeset viewer.