}
}
- 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) {
d_ptr->viewfinder->stop();
- d_ptr->stopping = false;
-
return true;
}
viewfinder(0),
conf(0),
error(false),
- notifications(0),
- stopping(false) {
+ notifications(0) {
}
}
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),
QtCamGStreamerMessageListener *listener;
bool error;
QtCamNotifications *notifications;
- bool stopping;
};
#endif /* QT_CAM_DEVICE_P_H */