RESOLVED FIXED227444
Make LocalSampleBufferDisplayLayer::requestNotificationWhenReadyForVideoData hop to main thread before hopping to processing thread
https://bugs.webkit.org/show_bug.cgi?id=227444
Summary Make LocalSampleBufferDisplayLayer::requestNotificationWhenReadyForVideoData ...
youenn fablet
Reported 2021-06-28 05:14:39 PDT
Make LocalSampleBufferDisplayLayer::requestNotificationWhenReadyForVideoData hop to main thread before hopping to processing thread
Attachments
Patch (3.66 KB, patch)
2021-06-28 05:18 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2021-06-28 05:14:53 PDT
youenn fablet
Comment 2 2021-06-28 05:18:27 PDT
youenn fablet
Comment 3 2021-07-01 03:41:40 PDT
ping review
Chris Dumez
Comment 4 2021-07-01 12:32:34 PDT
Comment on attachment 432384 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=432384&action=review > Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm:401 > + m_processingQueue->dispatch([this] { Why is this safe? What guarantees that |this| is still alive when the lambda runs?
youenn fablet
Comment 5 2021-07-01 12:52:08 PDT
(In reply to Chris Dumez from comment #4) > Comment on attachment 432384 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=432384&action=review > > > Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm:401 > > + m_processingQueue->dispatch([this] { > > Why is this safe? What guarantees that |this| is still alive when the lambda > runs? We are doing a dispatchSync in LocalSampleBufferDisplayLayer destructor.
Chris Dumez
Comment 6 2021-07-01 12:54:21 PDT
Comment on attachment 432384 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=432384&action=review >>> Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm:401 >>> + m_processingQueue->dispatch([this] { >> >> Why is this safe? What guarantees that |this| is still alive when the lambda runs? > > We are doing a dispatchSync in LocalSampleBufferDisplayLayer destructor. Ah, sneaky :) Seems safe indeed then. Sorry about the noise.
EWS
Comment 7 2021-07-02 00:09:59 PDT
Committed r279500 (239352@main): <https://commits.webkit.org/239352@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 432384 [details].
Note You need to log in before you can comment on or make changes to this bug.