Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CrashTracer: com.apple.WebKit.GPU at AVFCore: -[AVPlayerItem _seekToT…
…ime:toleranceBefore:toleranceAfter:seekID:completionHandler:] https://bugs.webkit.org/show_bug.cgi?id=243068 <rdar://95237949> Reviewed by Jer Noble. AVPlayerItem throws an exception when an invalid or negative tolerance value is passed to the -seekToTime: method. If we run into a bad tolerance value, we can just ignore the tolerance by setting it to positive infinity. From the AVF documentation: (https://developer.apple.com/documentation/avfoundation/avplayer/1388493-seektotime) Invoking this method with toleranceBefore set to kCMTimePositiveInfinity and toleranceAfter set to kCMTimePositiveInfinity is the same as invoking seekToTime:. * Source/WebCore/html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::seekTask): * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::seekToTime): Canonical link: https://commits.webkit.org/252714@main
- Loading branch information