[chronojump] Webcam windows and mac should remember now last camera on gui/preferences



commit 1a3877d12dec966a15b4d993e02e025b88d56774
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Nov 7 20:26:39 2019 +0100

    Webcam windows and mac should remember now last camera on gui/preferences

 src/gui/preferences.cs            | 2 +-
 src/webcam/webcamFfmpegDevices.cs | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 8c5d201d..e0d34ed9 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -705,7 +705,7 @@ public class PreferencesWindow
                //if(current >= devices.Count)
                //      current = 0;
                
-               combo_camera.Active = UtilGtk.ComboMakeActive(combo_camera, current);
+               combo_camera.Active = UtilGtk.ComboMakeActive(combo_camera, 
wd_list.GetCodeOfFullname(current));
 
                // 2) pixel_format
 
diff --git a/src/webcam/webcamFfmpegDevices.cs b/src/webcam/webcamFfmpegDevices.cs
index 4d62fc3d..77332caf 100644
--- a/src/webcam/webcamFfmpegDevices.cs
+++ b/src/webcam/webcamFfmpegDevices.cs
@@ -32,8 +32,10 @@ public class WebcamDevice
        //[1] Capture screen 0          //this is to screencapture
        //
        //on Linux it is returned a filename (it will be the code)
+       //code == fullname
        //
-       //on windows ...
+       //on windows the code is the long name with strange chars: stored on SQL
+       //the fullname is the readable name that is seen on preferences combo
        //
        //object is a device and fullname
        private string code;


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