projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbaeb71
)
Set viewfinder-caps before video-capture-caps otherwise we get an error while subdevs...
author
Mohammed Sameer
<msameer@foolab.org>
Wed, 29 Aug 2012 14:06:07 +0000
(17:06 +0300)
committer
Mohammed Sameer
<msameer@foolab.org>
Thu, 6 Sep 2012 16:10:09 +0000
(19:10 +0300)
lib/qtcamvideomode.cpp
patch
|
blob
|
history
diff --git
a/lib/qtcamvideomode.cpp
b/lib/qtcamvideomode.cpp
index
0e089bd
..
85b9721
100644
(file)
--- a/
lib/qtcamvideomode.cpp
+++ b/
lib/qtcamvideomode.cpp
@@
-43,10
+43,12
@@
bool QtCamVideoMode::canCapture() {
}
void QtCamVideoMode::applySettings() {
- setCaps("video-capture-caps", d_ptr->settings.captureResolution(),
- d_ptr->settings.frameRate());
setCaps("viewfinder-caps", d_ptr->settings.captureResolution(),
d_ptr->settings.frameRate());
+
+ setCaps("video-capture-caps", d_ptr->settings.captureResolution(),
+ d_ptr->settings.frameRate());
+
setPreviewSize(d_ptr->settings.previewResolution());
}