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

Issue 197213004: Fix DCHECK error when invalid video constraints are set on gUM. If a video constraint can not be me… (Closed)

Created:
6 years, 9 months ago by perkj_chrome
Modified:
6 years, 9 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Fix DCHECK error when invalid video constraints are set on gUM. If a video constraint can not be met, VideoCaptureDelegate::StopDeliver is called even if StartDeliver has not been called. This is as expected. The problem is that the messagelooproxy has not been set when VideoCaptureDelegate::StopSourceImpl is called unless StartDeliver has been called. This sets the proxy when the VideoCaptureDelegate is created instead. A content browser test is added to test what happen if constraints can not be met. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257450

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix to use error code and use expect failure. #

Total comments: 1

Patch Set 3 : Fix nit. #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -10 lines) Patch
M content/browser/media/webrtc_getusermedia_browsertest.cc View 1 2 3 2 chunks +26 lines, -6 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M content/test/data/media/getusermedia.html View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
perkj_chrome
Hej Can you please review?
6 years, 9 months ago (2014-03-12 19:15:47 UTC) #1
mcasas
Drive-by. https://codereview.chromium.org/197213004/diff/1/content/browser/media/webrtc_getusermedia_browsertest.cc File content/browser/media/webrtc_getusermedia_browsertest.cc (right): https://codereview.chromium.org/197213004/diff/1/content/browser/media/webrtc_getusermedia_browsertest.cc#newcode352 content/browser/media/webrtc_getusermedia_browsertest.cc:352: int large_value = 99999; I'd recommend splitting this ...
6 years, 9 months ago (2014-03-13 08:07:45 UTC) #2
no longer working on chromium
I defer the test case to Miguel. lgtm with one nit https://codereview.chromium.org/197213004/diff/1/content/renderer/media/media_stream_video_capturer_source.cc File content/renderer/media/media_stream_video_capturer_source.cc (right): ...
6 years, 9 months ago (2014-03-13 09:29:11 UTC) #3
phoglund_chromium
lgtm. I wonder if this is the same bug as the crash I saw yesterday ...
6 years, 9 months ago (2014-03-13 09:43:43 UTC) #4
phoglund_chromium
On 2014/03/13 09:43:43, phoglund wrote: > lgtm. > > I wonder if this is the ...
6 years, 9 months ago (2014-03-13 15:42:50 UTC) #5
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 9 months ago (2014-03-14 08:29:43 UTC) #6
perkj_chrome
https://codereview.chromium.org/197213004/diff/1/content/browser/media/webrtc_getusermedia_browsertest.cc File content/browser/media/webrtc_getusermedia_browsertest.cc (right): https://codereview.chromium.org/197213004/diff/1/content/browser/media/webrtc_getusermedia_browsertest.cc#newcode352 content/browser/media/webrtc_getusermedia_browsertest.cc:352: int large_value = 99999; On 2014/03/13 08:07:46, mcasas wrote: ...
6 years, 9 months ago (2014-03-14 08:29:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/197213004/1
6 years, 9 months ago (2014-03-14 08:29:53 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 09:48:35 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-14 09:48:35 UTC) #10
perkj_chrome
Patrik can you please take another look?
6 years, 9 months ago (2014-03-14 15:22:37 UTC) #11
phoglund_chromium
lgtm https://codereview.chromium.org/197213004/diff/20001/content/test/data/media/getusermedia.html File content/test/data/media/getusermedia.html (left): https://codereview.chromium.org/197213004/diff/20001/content/test/data/media/getusermedia.html#oldcode33 content/test/data/media/getusermedia.html:33: // Requests getusermedia and expects it to fail. ...
6 years, 9 months ago (2014-03-14 15:26:10 UTC) #12
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 9 months ago (2014-03-14 15:30:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/197213004/40001
6 years, 9 months ago (2014-03-14 15:31:08 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 15:32:25 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-14 15:32:31 UTC) #16
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 9 months ago (2014-03-17 09:31:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/197213004/60001
6 years, 9 months ago (2014-03-17 09:31:50 UTC) #18
commit-bot: I haz the power
6 years, 9 months ago (2014-03-17 16:46:40 UTC) #19
Message was sent while issue was closed.
Change committed as 257450

Powered by Google App Engine
This is Rietveld 408576698