[chronojump] Fix on old videoDevice == 0



commit 05b2663244af9512b541c96b2cb9064486df1328
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jul 18 13:51:55 2018 +0200

    Fix on old videoDevice == 0

 src/gui/chronojump.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index e340cb6d..af5efa26 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -3783,7 +3783,7 @@ public partial class ChronoJumpWindow
                */
        }
 
-       int videoDeviceNum = 0; 
+       //int videoDeviceNum = 0;
        private void videoCapturePrepare(bool showErrorMessage) {
                /*
                 * TODO: reimplement this with ffmpeg
@@ -4213,7 +4213,7 @@ public partial class ChronoJumpWindow
        Webcam webcam;
        private void webcamRecordStart()
        {
-               if(preferences.videoDevice == "")
+               if(preferences.videoDevice == "" || preferences.videoDevice == "0")
                {
                        new DialogMessage(Constants.MessageTypes.WARNING, "Video device is not configured. 
Check preferences / Multimedia.");
                        return;


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