projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63537d4
)
Reset capabilities after we change the mode
author
Mohammed Sameer
<msameer@foolab.org>
Thu, 30 Aug 2012 17:39:12 +0000
(20:39 +0300)
committer
Mohammed Sameer
<msameer@foolab.org>
Thu, 6 Sep 2012 16:10:09 +0000
(19:10 +0300)
lib/qtcammode.cpp
patch
|
blob
|
history
diff --git
a/lib/qtcammode.cpp
b/lib/qtcammode.cpp
index
71440f6
..
7b5ee44
100644
(file)
--- a/
lib/qtcammode.cpp
+++ b/
lib/qtcammode.cpp
@@
-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);