Ignore the artist size limit. Will fix if someone complains!
[harmattan/cameraplus] / lib / qtcamdevice_p.h
index 7421652..aae2b33 100644 (file)
@@ -49,7 +49,8 @@ public:
     viewfinder(0),
     conf(0),
     error(false),
-    notifications(0) {
+    notifications(0),
+    viewfinderFilters(0) {
 
   }
 
@@ -100,6 +101,20 @@ public:
     }
   }
 
+  void setDevicePoperty() {
+    if (videoSource) {
+      if (conf->deviceScannerType() == SCANNER_TYPE_ENUM) {
+       int dev = id.toInt();
+       g_object_set(videoSource, conf->deviceScannerProperty().toAscii().constData(), dev, NULL);
+      }
+      else {
+       QString dev = id.toString();
+       g_object_set(videoSource, conf->deviceScannerProperty().toAscii().constData(),
+                    dev.toAscii().constData(), NULL);
+      }
+    }
+  }
+
   bool setViewfinderSink() {
     GstElement *sink = 0;
     g_object_get(cameraBin, "viewfinder-sink", &sink, NULL);