diff options
author | emircan <emircan@chromium.org> | 2016-03-25 17:46:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-26 00:46:57 +0000 |
commit | dbe511aa9eea169722b239f82174850df2185eff (patch) | |
tree | 85d298c3e58fd0f1dd90d097cddfb574fd9db292 /content/renderer/media/media_stream_video_capturer_source.cc | |
parent | ebdb684a77d95889be31d09df5973297ca4decce (diff) | |
download | chromium_src-dbe511aa9eea169722b239f82174850df2185eff.zip chromium_src-dbe511aa9eea169722b239f82174850df2185eff.tar.gz chromium_src-dbe511aa9eea169722b239f82174850df2185eff.tar.bz2 |
Request frame for new sinks from MediaStreamVideoTrack
This CL adds a series of RequstFrame() calls propagated from
MediaStreamVideoTrack when a new sink is added.
MediaStreamVideoTrack
-> MediaStreamVideoCapturerSource which is a MediaStreamVideoSource
-> media::VideoCapturerSource
This addresses the issues when a new sink is added but doesn't
receive a frame because it wasn't added on time.
BUG=597876, 587789, 486274
Review URL: https://codereview.chromium.org/1829193003
Cr-Commit-Position: refs/heads/master@{#383421}
Diffstat (limited to 'content/renderer/media/media_stream_video_capturer_source.cc')
-rw-r--r-- | content/renderer/media/media_stream_video_capturer_source.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/renderer/media/media_stream_video_capturer_source.cc b/content/renderer/media/media_stream_video_capturer_source.cc index ea2fb04..405e26a 100644 --- a/content/renderer/media/media_stream_video_capturer_source.cc +++ b/content/renderer/media/media_stream_video_capturer_source.cc @@ -398,6 +398,10 @@ MediaStreamVideoCapturerSource::MediaStreamVideoCapturerSource( MediaStreamVideoCapturerSource::~MediaStreamVideoCapturerSource() { } +void MediaStreamVideoCapturerSource::RequestRefreshFrame() { + source_->RequestRefreshFrame(); +} + void MediaStreamVideoCapturerSource::GetCurrentSupportedFormats( int max_requested_width, int max_requested_height, |