- bool setViewfinderSink() {
- GstElement *sink = 0;
- g_object_get(cameraBin, "viewfinder-sink", &sink, NULL);
+ void setDevicePoperty() {
+ if (videoSource) {
+ if (conf->deviceScannerType() == SCANNER_TYPE_ENUM) {
+ int dev = id.toInt();
+ g_object_set(videoSource, conf->deviceScannerProperty().toLatin1().constData(), dev, NULL);
+ }
+ else {
+ QString dev = id.toString();
+ g_object_set(videoSource, conf->deviceScannerProperty().toLatin1().constData(),
+ dev.toLatin1().constData(), NULL);
+ }
+ }
+ }