diff options
author | wjia@chromium.org <wjia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-26 21:38:26 +0000 |
---|---|---|
committer | wjia@chromium.org <wjia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-26 21:38:26 +0000 |
commit | 86f24311984327d522d060bceb8adacfad64c896 (patch) | |
tree | c8a2eda818d3d9a38d594cb5533c62afee581043 /content/renderer | |
parent | fb23b9a62ca73cfb238d89bf42e6b853bec39d20 (diff) | |
download | chromium_src-86f24311984327d522d060bceb8adacfad64c896.zip chromium_src-86f24311984327d522d060bceb8adacfad64c896.tar.gz chromium_src-86f24311984327d522d060bceb8adacfad64c896.tar.bz2 |
will fix unit test later.
Revert 129012 - video decoder doesn't update host with natural size. it should be video renderer.
BUG=120192
Review URL: https://chromiumcodereview.appspot.com/9856026
TBR=wjia@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9867001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r-- | content/renderer/media/capture_video_decoder.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/renderer/media/capture_video_decoder.cc b/content/renderer/media/capture_video_decoder.cc index 24fe43f..97626e6 100644 --- a/content/renderer/media/capture_video_decoder.cc +++ b/content/renderer/media/capture_video_decoder.cc @@ -214,6 +214,7 @@ void CaptureVideoDecoder::OnDeviceInfoReceivedOnDecoderThread( if (device_info.width != natural_size_.width() || device_info.height != natural_size_.height()) { natural_size_.SetSize(device_info.width, device_info.height); + host()->SetNaturalVideoSize(natural_size_); } } @@ -238,6 +239,7 @@ void CaptureVideoDecoder::OnBufferReadyOnDecoderThread( if (buf->width != natural_size_.width() || buf->height != natural_size_.height()) { natural_size_.SetSize(buf->width, buf->height); + host()->SetNaturalVideoSize(natural_size_); } // Need to rebase timestamp with zero as starting point. |