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

Issue 295483002: Make sure ReadyStateEnded is fired when video stream stops (Closed)

Created:
6 years, 7 months ago by Alpha Left Google
Modified:
6 years, 7 months ago
Reviewers:
perkj_chrome
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Make sure ReadyStateEnded is fired when video stream stops A regression was introduced in the refactoring change in r269020. VideoCaptureDelegate::started_callback_ is used to notify that the stream has started and ran into error. However in change r269020 the callback was reset after sending the started signal. This prevented error signal from firing. In this change |started_callback_| is renamed to |running_callback| to avoid confusion. Also added a test to verify that ReadyStateEnded is reached when a camera stops. BUG=374495 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271359

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -19 lines) Patch
M content/renderer/media/media_stream_video_capture_source_unittest.cc View 5 chunks +39 lines, -7 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.h View 4 chunks +10 lines, -6 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source.cc View 3 chunks +9 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Alpha Left Google
6 years, 7 months ago (2014-05-17 01:09:03 UTC) #1
Alpha Left Google
6 years, 7 months ago (2014-05-17 01:09:03 UTC) #2
perkj_chrome
Thanks lgtm
6 years, 7 months ago (2014-05-19 07:59:22 UTC) #3
perkj_chrome
The CQ bit was checked by perkj@chromium.org
6 years, 7 months ago (2014-05-19 08:00:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/295483002/1
6 years, 7 months ago (2014-05-19 08:00:28 UTC) #5
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 10:00:37 UTC) #6
Message was sent while issue was closed.
Change committed as 271359

Powered by Google App Engine
This is Rietveld 408576698