ekiga r6011 - in trunk: . lib/engine/vidinput/ptlib



Author: dsandras
Date: Sat Mar  1 17:16:50 2008
New Revision: 6011
URL: http://svn.gnome.org/viewvc/ekiga?rev=6011&view=rev

Log:
Added missing Start method. Thanks Matthias for the live debugging.


Modified:
   trunk/ChangeLog
   trunk/lib/engine/vidinput/ptlib/vidinput-manager-ptlib.cpp

Modified: trunk/lib/engine/vidinput/ptlib/vidinput-manager-ptlib.cpp
==============================================================================
--- trunk/lib/engine/vidinput/ptlib/vidinput-manager-ptlib.cpp	(original)
+++ trunk/lib/engine/vidinput/ptlib/vidinput-manager-ptlib.cpp	Sat Mar  1 17:16:50 2008
@@ -123,6 +123,7 @@
     error_code = Ekiga::ERR_FPS;
   else if (!input_device->SetFrameSizeConverter (current_state.width, current_state.height, PVideoFrameInfo::eScale))
     error_code = Ekiga::ERR_SCALE;
+  else input_device->Start ();
 
   if (error_code != Ekiga::ERR_NONE) {
     PTRACE(1, "GMVidInputManager_ptlib\tEncountered error " << error_code << " while opening device ");
@@ -143,8 +144,8 @@
 {
   PTRACE(4, "GMVidInputManager_ptlib\tClosing device " << current_state.vidinput_device.source << "/" <<  current_state.vidinput_device.device);
   if (input_device) {
-   delete input_device;
-   input_device = NULL;
+    delete input_device;
+    input_device = NULL;
   }
   current_state.opened = false;
 }
@@ -161,7 +162,7 @@
   width = current_state.width;
   height = current_state.height;
 
-  PINDEX I;
+  PINDEX I = 0;
 
   if (input_device)
     input_device->GetFrameData ((BYTE*)data, &I);



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