Don't ignore errors while stopping the pipeline.
[harmattan/cameraplus] / lib / qtcamdevice.cpp
index 7d5acbf..a492287 100644 (file)
@@ -217,8 +217,6 @@ bool QtCamDevice::stop(bool force) {
     }
   }
 
-  d_ptr->stopping = true;
-
   // First we go to ready:
   GstStateChangeReturn st = gst_element_set_state(d_ptr->cameraBin, GST_STATE_READY);
   if (st != GST_STATE_CHANGE_FAILURE) {
@@ -231,8 +229,6 @@ bool QtCamDevice::stop(bool force) {
 
   d_ptr->viewfinder->stop();
 
-  d_ptr->stopping = false;
-
   return true;
 }