From 316bc9e7f1967071533f488ba73a39ba2934a016 Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Sat, 1 Sep 2012 13:06:39 +0300 Subject: [PATCH] Comment out resetCapabilities(). Not sure if it's needed --- lib/qtcamdevice_p.h | 2 ++ lib/qtcammode.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/qtcamdevice_p.h b/lib/qtcamdevice_p.h index 0bb979f..5d694ef 100644 --- a/lib/qtcamdevice_p.h +++ b/lib/qtcamdevice_p.h @@ -181,6 +181,7 @@ public: Q_ARG(bool, d->q_ptr->isIdle())); } +#if 0 void resetCapabilities() { g_object_set(cameraBin, "zoom", 1.0, NULL); g_object_set(videoSource, "flash-mode", 0, NULL); @@ -188,6 +189,7 @@ public: // TODO: should scene mode be manual or automatic ? g_object_set(videoSource, "scene-mode", 0, NULL); } +#endif QString name; QVariant id; diff --git a/lib/qtcammode.cpp b/lib/qtcammode.cpp index 91ce0b3..099cb01 100644 --- a/lib/qtcammode.cpp +++ b/lib/qtcammode.cpp @@ -117,7 +117,8 @@ void QtCamMode::activate() { // TODO: check that we can actually do it. Perhaps the pipeline is busy. g_object_set(d_ptr->dev->cameraBin, "mode", d_ptr->id, NULL); - d_ptr->dev->resetCapabilities(); + // TODO: is that needed ? + // d_ptr->dev->resetCapabilities(); d_ptr->dev->listener->addHandler(d_ptr->previewImageHandler); d_ptr->dev->listener->addHandler(d_ptr->doneHandler); -- 2.25.1