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

Issue 1017633004: FileVideoCaptureDevice: better error mgmt if !File.IsValid() (Closed)

Created:
5 years, 9 months ago by mcasas
Modified:
5 years, 9 months ago
Reviewers:
phoglund_chromium
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FileVideoCaptureDevice: better error mgmt if !File.IsValid() Apparently on Windows platforms there's a small but nonzero crash rate due to CHECK(file.IsValid()) in FileVideoCaptureDevice::OpenFileForRead(). Do not CHECK() there, instead let the callers deal with the problem, so that there is no crash either (capture won't work of course). BUG=466408 Committed: https://crrev.com/72aaef796a92aac5aac80f315845215f0deebc64 Cr-Commit-Position: refs/heads/master@{#321139}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M media/video/capture/file_video_capture_device.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M media/video/capture/file_video_capture_device_factory.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
mcasas
phoglund@ PTAL
5 years, 9 months ago (2015-03-17 18:42:25 UTC) #2
phoglund_chromium
Yeah, I guess the best we can do is log the error and exit gracefully ...
5 years, 9 months ago (2015-03-18 07:57:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1017633004/1
5 years, 9 months ago (2015-03-18 14:50:45 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 9 months ago (2015-03-18 15:43:26 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/72aaef796a92aac5aac80f315845215f0deebc64 Cr-Commit-Position: refs/heads/master@{#321139}
5 years, 9 months ago (2015-03-18 15:44:26 UTC) #7
mcasas
5 years, 9 months ago (2015-03-18 16:37:36 UTC) #8
Message was sent while issue was closed.
On 2015/03/18 07:57:50, phoglund wrote:
> Yeah, I guess the best we can do is log the error and exit gracefully (except
> possibly rendering FAILED TO OPEN <file path> in the video flow :)

Hey I like that suggestion :D

> 
> lgtm

Powered by Google App Engine
This is Rietveld 408576698