Bug 1146637 - Set correct picture size on Gonk. r=jib
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 03 Apr 2015 08:23:00 +0200
changeset 267759 1d3edb7b2d2e94480570dcbb0dcccf5cccf63274
parent 267758 20d5299e3b5708713a079beb2f2a033ab907b8a5
child 267760 e849aa3f2ed8ab73ad8145183ca1f260d0ef99b2
push id4830
push userjlund@mozilla.com
push dateMon, 29 Jun 2015 20:18:48 +0000
treeherdermozilla-beta@4c2175bb0420 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib
bugs1146637
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1146637 - Set correct picture size on Gonk. r=jib
dom/media/webrtc/MediaEngineGonkVideoSource.cpp
--- a/dom/media/webrtc/MediaEngineGonkVideoSource.cpp
+++ b/dom/media/webrtc/MediaEngineGonkVideoSource.cpp
@@ -465,18 +465,19 @@ MediaEngineGonkVideoSource::Notify(const
 void
 MediaEngineGonkVideoSource::StartImpl(webrtc::CaptureCapability aCapability) {
   MOZ_ASSERT(NS_IsMainThread());
 
   ICameraControl::Configuration config;
   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);
 }
 
 void
 MediaEngineGonkVideoSource::StopImpl() {
   MOZ_ASSERT(NS_IsMainThread());