viewfinder(0),
conf(0),
error(false),
- notifications(0) {
+ notifications(0),
+ viewfinderFilters(0) {
}
}
}
+ 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);