Changeset 260488 in webkit
- Timestamp:
- Apr 21, 2020 7:23:06 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r260486 r260488 1 2020-04-21 Peng Liu <peng.liu6@apple.com> 2 3 platform/mac/media/audio-session-category-audio-autoplay.html is timing out 4 https://bugs.webkit.org/show_bug.cgi?id=210826 5 6 Reviewed by Jer Noble. 7 8 For WebKitLegacy, AudioSession::setCategory() needs to set the category when 9 m_routingArbitrationClient is nullptr. This patch also fixes an error regarding 10 setupArbitrationOngoing. 11 12 * platform/audio/mac/AudioSessionMac.mm: 13 (WebCore::AudioSession::setCategory): 14 1 15 2020-04-21 Peng Liu <peng.liu6@apple.com> 2 16 -
trunk/Source/WebCore/platform/audio/mac/AudioSessionMac.mm
r260172 r260488 97 97 } 98 98 99 m_private->category = category; 100 if (m_private->category == None) 101 return; 102 99 103 if (!m_routingArbitrationClient) 100 104 return; … … 105 109 } 106 110 107 m_private->category = category;108 if (m_private->category == None)109 return;110 111 111 using RoutingArbitrationError = AudioSessionRoutingArbitrationClient::RoutingArbitrationError; 112 112 using DefaultRouteChanged = AudioSessionRoutingArbitrationClient::DefaultRouteChanged; 113 113 114 m_private->setupArbitrationOngoing = true; 114 115 m_routingArbitrationClient->beginRoutingArbitrationWithCategory(m_private->category, [this] (RoutingArbitrationError error, DefaultRouteChanged defaultRouteChanged) { 115 116 m_private->setupArbitrationOngoing = false;
Note: See TracChangeset
for help on using the changeset viewer.