Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Issue 2715713006: Fix for issue 696098 (potential video capture crash ChromeOS) (Closed)

Created:
3 years, 10 months ago by chfremer
Modified:
3 years, 10 months ago
Reviewers:
mcasas, miu
CC:
chromium-reviews, posciak+watch_chromium.org, chfremer+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M media/capture/video/video_capture_device_client.cc View 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (13 generated)
chfremer
PTAL
3 years, 10 months ago (2017-02-25 00:57:03 UTC) #3
miu
lgtm
3 years, 10 months ago (2017-02-25 03:48:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2715713006/1
3 years, 10 months ago (2017-02-25 07:54:42 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 08:03:07 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/1339655a2c52f3e775166de7a21c...

Powered by Google App Engine
This is Rietveld 408576698