[chronojump] Webcam working all on windows. pending to try



commit 6843cb6ffeaa42b6c38e903220dc39ef62911192
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Apr 30 00:23:46 2013 +0200

    Webcam working all on windows. pending to try

 src/gui/chronojump.cs |    6 +++---
 src/gui/person.cs     |    3 +++
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 2480e25..254236e 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2828,9 +2828,9 @@ public partial class ChronoJumpWindow
                        capturer.Type = CapturerType.Fake;
                capturer.Visible=true;
 
-               //try {
-               //      capturer.Stop();
-               //} catch {}
+               try {
+                       capturer.Stop();
+               } catch {}
                capturer.Run();
        }
        
diff --git a/src/gui/person.cs b/src/gui/person.cs
index 8f1ae49..7848f5b 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -995,6 +995,9 @@ public class PersonAddModifyWindow
                capturer = new CapturerBin();
                CapturePropertiesStruct s = new CapturePropertiesStruct();
 
+               List<LongoMatch.Video.Utils.Device> devices = 
LongoMatch.Video.Utils.Device.ListVideoDevices();
+               s.DeviceID = devices[0].ID;
+               
                s.CaptureSourceType = CaptureSourceType.System;
 
                capturer.CaptureProperties = s;


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