Bug 293344

Summary: [Cocoa] VideoMediaSampleRenderer will decode continuously until playback has started.
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Jean-Yves Avenard [:jya]
Reported 2025-05-21 01:23:43 PDT
https://searchfox.org/wubkat/rev/a4ab006bdf55fb59302f8cffb4c8ade78cdf0dad/Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm#502-509 `if (auto currentTime = this->currentTime(); currentTime && !m_wasProtected) {` currentTime returns invalidTime() if there's no time available, but we are testing if the time isn't 0. The time will be zero until playback has started.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-05-21 01:28:08 PDT
Jean-Yves Avenard [:jya]
Comment 2 2025-05-21 07:33:01 PDT
EWS
Comment 3 2025-05-21 15:25:09 PDT
Committed 295236@main (1866c8240680): <https://commits.webkit.org/295236@main> Reviewed commits have been landed. Closing PR #45700 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.