| Summary: | [Mac] Crash in WebCore::MediaPlayer::canPlayToWirelessPlaybackTarget | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Eric Carlson <eric.carlson> | ||||
| Component: | Media | Assignee: | Eric Carlson <eric.carlson> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Eric Carlson
2015-06-25 09:39:37 PDT
Created attachment 255560 [details]
Proposed patch.
Comment on attachment 255560 [details] Proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=255560&action=review r=me > Source/WebCore/html/HTMLMediaElement.cpp:6320 > + if (m_player && m_hasPlaybackTargetAvailabilityListeners && !m_mediaSession->wirelessVideoPlaybackDisabled(*this) && m_player->canPlayToWirelessPlaybackTarget()) I wonder if m_mediaSession can ever be null? (In reply to comment #3) > Comment on attachment 255560 [details] > Proposed patch. > > View in context: > https://bugs.webkit.org/attachment.cgi?id=255560&action=review > > r=me > > > Source/WebCore/html/HTMLMediaElement.cpp:6320 > > + if (m_player && m_hasPlaybackTargetAvailabilityListeners && !m_mediaSession->wirelessVideoPlaybackDisabled(*this) && m_player->canPlayToWirelessPlaybackTarget()) > > I wonder if m_mediaSession can ever be null? No, it is a std::unique_ptr<> that is allocated in the constructor. Committed r185962: https://trac.webkit.org/r185962 |