Changeset 275574 in webkit
- Timestamp:
- Apr 6, 2021 5:32:09 PM (3 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r275573 r275574 1 2021-04-06 Eric Carlson <eric.carlson@apple.com> 2 3 REGRESSION (r275538): [ macOS ] TestWebKitAPI.WebKitLegacy.MediaPlaybackSleepAssertion and TestWebKitAPI.SleepDisabler.Pause consistently failing 4 https://bugs.webkit.org/show_bug.cgi?id=224249 5 <rdar://problem/76286539> 6 7 Reviewed by Jer Noble. 8 9 No new tests, this fixes two API tests. 10 11 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 12 (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem): Use m_requestedRate 13 when choosing the pitch correction algorithm. 14 (WebCore::MediaPlayerPrivateAVFoundationObjC::setPlayerRate): Ditto. 15 (WebCore::MediaPlayerPrivateAVFoundationObjC::setPreservesPitch): Ditto. 16 (WebCore::MediaPlayerPrivateAVFoundationObjC::setPitchCorrectionAlgorithm): Ditto. 17 (WebCore::MediaPlayerPrivateAVFoundationObjC::playerItemStatusDidChange): Ditto. 18 1 19 2021-04-06 Jer Noble <jer.noble@apple.com> 2 20 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r275538 r275574 1135 1135 [m_avPlayerItem.get() addObserver:m_objcObserver.get() forKeyPath:keyName options:options context:(void *)MediaPlayerAVFoundationObservationContextPlayerItem]; 1136 1136 1137 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(player()->pitchCorrectionAlgorithm(), player()->preservesPitch(), m_ cachedRate)];1137 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(player()->pitchCorrectionAlgorithm(), player()->preservesPitch(), m_requestedRate)]; 1138 1138 1139 1139 #if HAVE(AVFOUNDATION_INTERSTITIAL_EVENTS) … … 1514 1514 setDelayCallbacks(true); 1515 1515 1516 m_cachedRate = rate; 1517 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(player()->pitchCorrectionAlgorithm(), player()->preservesPitch(), m_cachedRate)]; 1516 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(player()->pitchCorrectionAlgorithm(), player()->preservesPitch(), m_requestedRate)]; 1518 1517 1519 1518 setShouldObserveTimeControlStatus(false); … … 1553 1552 { 1554 1553 if (m_avPlayerItem) 1555 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(player()->pitchCorrectionAlgorithm(), preservesPitch, m_ cachedRate)];1554 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(player()->pitchCorrectionAlgorithm(), preservesPitch, m_requestedRate)]; 1556 1555 } 1557 1556 … … 1559 1558 { 1560 1559 if (m_avPlayerItem) 1561 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(pitchCorrectionAlgorithm, player()->preservesPitch(), m_ cachedRate)];1560 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(pitchCorrectionAlgorithm, player()->preservesPitch(), m_requestedRate)]; 1562 1561 } 1563 1562 … … 3043 3042 // FIXME(rdar://72829354): Remove after AVFoundation radar is fixed. 3044 3043 if (status == AVPlayerItemStatusReadyToPlay) 3045 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(player()->pitchCorrectionAlgorithm(), player()->preservesPitch(), m_ cachedRate)];3044 [m_avPlayerItem setAudioTimePitchAlgorithm:audioTimePitchAlgorithmForMediaPlayerPitchCorrectionAlgorithm(player()->pitchCorrectionAlgorithm(), player()->preservesPitch(), m_requestedRate)]; 3046 3045 #endif 3047 3046
Note: See TracChangeset
for help on using the changeset viewer.