Bug 1146637 - Set correct picture size on Gonk. r=jib

This commit is contained in:
J. Ryan Stinnett 2015-04-03 08:23:00 +02:00
parent ffd9c6817a
commit 46bea5a791

View File

@ -470,8 +470,9 @@ MediaEngineGonkVideoSource::StartImpl(webrtc::CaptureCapability aCapability) {
config.mMode = ICameraControl::kPictureMode;
config.mPreviewSize.width = aCapability.width;
config.mPreviewSize.height = aCapability.height;
config.mPictureSize.width = aCapability.width;
config.mPictureSize.height = aCapability.height;
mCameraControl->Start(&config);
mCameraControl->Set(CAMERA_PARAM_PICTURE_SIZE, config.mPreviewSize);
hal::RegisterScreenConfigurationObserver(this);
}