Reset capabilities after we change the mode
authorMohammed Sameer <msameer@foolab.org>
Thu, 30 Aug 2012 17:39:12 +0000 (20:39 +0300)
committerMohammed Sameer <msameer@foolab.org>
Thu, 6 Sep 2012 16:10:09 +0000 (19:10 +0300)
lib/qtcammode.cpp

index 71440f6..7b5ee44 100644 (file)
@@ -117,9 +117,10 @@ void QtCamMode::activate() {
   d_ptr->dev->active = this;
 
   // 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();
+
   d_ptr->dev->listener->addHandler(d_ptr->previewImageHandler);
   d_ptr->dev->listener->addHandler(d_ptr->doneHandler);