[ekiga/ds-clutter] VideoInputCore: Removed useless code.



commit b36ff0589391b8934a55884cfc44cffd509ed4c0
Author: Damien Sandras <dsandras beip be>
Date:   Thu Jan 9 19:48:17 2014 +0100

    VideoInputCore: Removed useless code.

 lib/engine/videoinput/videoinput-core.cpp |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/lib/engine/videoinput/videoinput-core.cpp b/lib/engine/videoinput/videoinput-core.cpp
index d1c27d8..c06f2fc 100644
--- a/lib/engine/videoinput/videoinput-core.cpp
+++ b/lib/engine/videoinput/videoinput-core.cpp
@@ -116,9 +116,6 @@ void VideoInputCore::VideoPreviewManager::Main ()
   PWaitAndSignal m(thread_mutex);
   bool exit = end_thread;
   bool capture = !pause_thread;
-  std::cout << "FIXME" << std::endl << std::flush;
-  int brol = 0;
-  int d = 1;
 
   while (!exit) {
 
@@ -130,17 +127,11 @@ void VideoInputCore::VideoPreviewManager::Main ()
       {
         PWaitAndSignal c(frame_mutex);
         if (frame) {
-          brol++;
           videoinput_core.get_frame_data(frame);
-          videooutput_core->set_frame_data(frame, width, height, VideoOutputManager::LOCAL, d);
-          if (brol > 100) d=2;
-          //FIXME
-          if (d == 2)
-            videooutput_core->set_frame_data(frame, width, height, VideoOutputManager::REMOTE, d);
+          videooutput_core->set_frame_data(frame, width, height, VideoOutputManager::LOCAL, 1);
         }
       }
     }
-    else { brol = 0; d= 1; }
     {
        PWaitAndSignal q(exit_mutex);
        exit = end_thread;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]