Chromium Code Reviews
DescriptionFix for issue 696098 (potential video capture crash ChromeOS)
In a previous CL [1], the contract between VideoCaptureDeviceClient and
VideoFrameReceiver has changed such that VideoCaptureDeviceClient is required
to call VideoFrameReceiver::OnNewBufferHandle() before using the corresponding
buffer to push frames.
The call to OnNewBufferHandle() was made in OnIncomingCapturedBufferExt().
However, in the case of accelerated MJPEG decoding, this code path is not
actually getting used for the delivery of frames. And the code path that does
get used for delivery of accelerated MJPEG frames does not make the required
calls to OnNewBufferHandle().
This CL moves the calls to OnNewBufferHandle() to a location that is used in
both cases, which is immediately after a buffer is reserved.
[1] https://codereview.chromium.org/2686763002/
BUG=696098
TEST=Currently not covered by any automated test. For manual test, run video
capture on a ChromeOS device that uses accelerated MJPEG decoding.
Review-Url: https://codereview.chromium.org/2715713006
Cr-Commit-Position: refs/heads/master@{#453077}
Committed: https://chromium.googlesource.com/chromium/src/+/1339655a2c52f3e775166de7a21caa92d831c55d
Patch Set 1 #
Messages
Total messages: 17 (13 generated)
|
|||||||||||||||||||