Move qt_cam_copy_register to QtCamera
[harmattan/cameraplus] / lib / qtcamdevice.cpp
index d48bba2..ed00c5e 100644 (file)
@@ -29,7 +29,6 @@
 #include "qtcamimagemode.h"
 #include "qtcamvideomode.h"
 #include "qtcamnotifications.h"
-#include "gst/gstcopy.h"
 #include "qtcampropertysetter.h"
 #include "qtcamanalysisbin.h"
 
@@ -37,12 +36,6 @@ QtCamDevice::QtCamDevice(QtCamConfig *config, const QString& name,
                         const QVariant& id, QObject *parent) :
   QObject(parent), d_ptr(new QtCamDevicePrivate) {
 
-  static gboolean register_copy = TRUE;
-  if (register_copy) {
-    qt_cam_copy_register();
-    register_copy = FALSE;
-  }
-
   d_ptr->q_ptr = this;
   d_ptr->name = name;
   d_ptr->id = id;
@@ -158,10 +151,6 @@ bool QtCamDevice::setViewfinder(QtCamViewfinder *viewfinder) {
     return true;
   }
 
-  if (!viewfinder->setDevice(this)) {
-    return false;
-  }
-
   d_ptr->viewfinder = viewfinder;
   d_ptr->sink = 0;