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

Issue 15070008: Check buffer_pool_ for null in VideoCaptureController::PostStopping. (Closed)

Created:
7 years, 7 months ago by ncarter (slow)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Check buffer_pool_ for null in VideoCaptureController::PostStopping. buffer_pool_lock_ is not needed on the UI thread for this test, but if the camera started and stopped without an OnFrameInfo, then it's possible that the buffer_pool_ was never created. BUG=231723 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203069

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added null checks everywhere. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M content/browser/renderer_host/media/video_capture_controller.cc View 1 3 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ncarter (slow)
wjia, please have a look
7 years, 7 months ago (2013-05-16 00:07:41 UTC) #1
wjia(left Chromium)
https://chromiumcodereview.appspot.com/15070008/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://chromiumcodereview.appspot.com/15070008/diff/1/content/browser/renderer_host/media/video_capture_controller.cc#newcode658 content/browser/renderer_host/media/video_capture_controller.cc:658: if ((buffer_pool_ && buffer_pool_->IsAnyBufferHeldForConsumers()) || Should this check be ...
7 years, 7 months ago (2013-05-16 00:14:16 UTC) #2
ncarter (slow)
https://codereview.chromium.org/15070008/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/15070008/diff/1/content/browser/renderer_host/media/video_capture_controller.cc#newcode658 content/browser/renderer_host/media/video_capture_controller.cc:658: if ((buffer_pool_ && buffer_pool_->IsAnyBufferHeldForConsumers()) || On 2013/05/16 00:14:16, wjia ...
7 years, 7 months ago (2013-05-16 00:32:31 UTC) #3
sheu
Adding myself. Seeing this working on desktop capture.
7 years, 7 months ago (2013-05-19 02:40:12 UTC) #4
wjia(left Chromium)
Is this patch still alive? We need a complete fix ASAP.
7 years, 6 months ago (2013-05-29 17:30:26 UTC) #5
ncarter (slow)
I added a new version that does checks everywhere, though for the most part I ...
7 years, 6 months ago (2013-05-30 01:26:16 UTC) #6
wjia(left Chromium)
lgtm. please merge it to M27 and M28. Thanks!
7 years, 6 months ago (2013-05-30 02:36:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nick@chromium.org/15070008/24001
7 years, 6 months ago (2013-05-30 02:39:30 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 04:50:15 UTC) #9
Message was sent while issue was closed.
Change committed as 203069

Powered by Google App Engine
This is Rietveld 408576698