dom/camera/DOMCameraControl.cpp
changeset 214446 3c8491fb2572c73f79c34484dddc557b389a5788
parent 214202 036de9b00df6162467e598260eef951f18f37014
child 215389 ab6a050eccb912356ab9da9f27a1387a067d5f5a
--- a/dom/camera/DOMCameraControl.cpp
+++ b/dom/camera/DOMCameraControl.cpp
@@ -306,17 +306,21 @@ nsDOMCameraControl::nsDOMCameraControl(u
     // Start the camera...
     if (haveInitialConfig) {
       rv = mCameraControl->Start(&config);
     } else {
       rv = mCameraControl->Start();
     }
 #ifdef MOZ_WIDGET_GONK
   } else {
-    rv = mCameraControl->SetConfiguration(config);
+    if (haveInitialConfig) {
+      rv = mCameraControl->SetConfiguration(config);
+    } else {
+      rv = NS_OK;
+    }
   }
 #endif
   if (NS_FAILED(rv)) {
     mListener->OnUserError(DOMCameraControlListener::kInStartCamera, rv);
   }
 }
 
 nsDOMCameraControl::~nsDOMCameraControl()