[ekiga] Videoinput(ptlib): code simplification
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Videoinput(ptlib): code simplification
- Date: Wed, 23 Jan 2013 08:54:10 +0000 (UTC)
commit 2b821878b45cf05b5352e19a287b66604c6f27e9
Author: Julien Puydt <jpuydt free fr>
Date: Tue Jan 22 10:30:53 2013 +0100
Videoinput(ptlib): code simplification
.../components/ptlib/videoinput-main-ptlib.cpp | 2 +-
.../components/ptlib/videoinput-manager-ptlib.cpp | 3 +--
.../components/ptlib/videoinput-manager-ptlib.h | 3 +--
3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/lib/engine/components/ptlib/videoinput-main-ptlib.cpp b/lib/engine/components/ptlib/videoinput-main-ptlib.cpp
index 0972afd..5bdc161 100644
--- a/lib/engine/components/ptlib/videoinput-main-ptlib.cpp
+++ b/lib/engine/components/ptlib/videoinput-main-ptlib.cpp
@@ -53,7 +53,7 @@ struct PTLIBVIDEOINPUTSpark: public Ekiga::Spark
if (videoinput_core) {
- GMVideoInputManager_ptlib *videoinput_manager = new GMVideoInputManager_ptlib(core);
+ GMVideoInputManager_ptlib *videoinput_manager = new GMVideoInputManager_ptlib;
videoinput_core->add_manager (*videoinput_manager);
core.add (Ekiga::ServicePtr (new Ekiga::BasicService ("ptlib-video-input",
diff --git a/lib/engine/components/ptlib/videoinput-manager-ptlib.cpp b/lib/engine/components/ptlib/videoinput-manager-ptlib.cpp
index b2ebe11..50d681e 100644
--- a/lib/engine/components/ptlib/videoinput-manager-ptlib.cpp
+++ b/lib/engine/components/ptlib/videoinput-manager-ptlib.cpp
@@ -41,8 +41,7 @@
#define DEVICE_TYPE "PTLIB"
-GMVideoInputManager_ptlib::GMVideoInputManager_ptlib (Ekiga::ServiceCore & _core)
-: core (_core)
+GMVideoInputManager_ptlib::GMVideoInputManager_ptlib ()
{
current_state.opened = false;
input_device = NULL;
diff --git a/lib/engine/components/ptlib/videoinput-manager-ptlib.h b/lib/engine/components/ptlib/videoinput-manager-ptlib.h
index 91ddb41..dd93907 100644
--- a/lib/engine/components/ptlib/videoinput-manager-ptlib.h
+++ b/lib/engine/components/ptlib/videoinput-manager-ptlib.h
@@ -54,7 +54,7 @@
{
public:
- GMVideoInputManager_ptlib (Ekiga::ServiceCore & core);
+ GMVideoInputManager_ptlib ();
~GMVideoInputManager_ptlib ();
@@ -76,7 +76,6 @@
virtual bool has_device (const std::string & source, const std::string & device_name, unsigned capabilities, Ekiga::VideoInputDevice & device);
protected:
- Ekiga::ServiceCore & core;
unsigned expectedFrameSize;
PVideoInputDevice *input_device;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]