Changeset 258962 in webkit
- Timestamp:
- Mar 24, 2020 5:18:10 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r258961 r258962 1 2020-03-24 Jer Noble <jer.noble@apple.com> 2 3 REGRESSION(r258314): Leak in MediaPlayerPrivateMediaSourceAVFObjC::updateLastPixelBuffer() 4 https://bugs.webkit.org/show_bug.cgi?id=209519 5 6 Reviewed by Eric Carlson. 7 8 Obey the "copy" rule and adopt the results of -copyPixelBufferForSourceTime:sourceTimeForDisplay:. 9 10 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: 11 (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::updateLastPixelBuffer): 12 1 13 2020-03-24 Jiewen Tan <jiewen_tan@apple.com> 2 14 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
r258314 r258962 589 589 if (m_videoOutput) { 590 590 CMTime outputTime; 591 if (auto pixelBuffer = [m_videoOutput copyPixelBufferForSourceTime:toCMTime(currentMediaTime()) sourceTimeForDisplay:&outputTime]) {591 if (auto pixelBuffer = adoptCF([m_videoOutput copyPixelBufferForSourceTime:toCMTime(currentMediaTime()) sourceTimeForDisplay:&outputTime])) { 592 592 INFO_LOG(LOGIDENTIFIER, "new pixelbuffer found for time ", toMediaTime(outputTime)); 593 593 m_lastPixelBuffer = WTFMove(pixelBuffer);
Note: See TracChangeset
for help on using the changeset viewer.