Don't ignore errors while stopping the pipeline.
[harmattan/cameraplus] / lib / qtcamdevice_p.h
index 914928b..45205c4 100644 (file)
@@ -47,8 +47,7 @@ public:
     viewfinder(0),
     conf(0),
     error(false),
-    notifications(0),
-    stopping(false) {
+    notifications(0) {
 
   }
 
@@ -132,11 +131,6 @@ public:
   }
 
   void _d_error(const QString& message, int code, const QString& debug) {
-    if (stopping) {
-      // TODO: is it wise to ignore errors while stopping??
-      return;
-    }
-
     error = true;
 
     QMetaObject::invokeMethod(q_ptr, "error", Q_ARG(QString, message),
@@ -241,7 +235,6 @@ public:
   QtCamGStreamerMessageListener *listener;
   bool error;
   QtCamNotifications *notifications;
-  bool stopping;
 };
 
 #endif /* QT_CAM_DEVICE_P_H */