[chronojump] Fixed bug on encoder capture w or wo video, since recent video commits



commit 032f8ddc034c8847ba1eac1859a245dc76617e8f
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Apr 12 18:26:47 2019 +0200

    Fixed bug on encoder capture w or wo video, since recent video commits

 src/gui/webcam.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/webcam.cs b/src/gui/webcam.cs
index 1c7ca5b8..8da151f5 100644
--- a/src/gui/webcam.cs
+++ b/src/gui/webcam.cs
@@ -226,7 +226,8 @@ public partial class ChronoJumpWindow
        //can pass a -1 uniqueID if test is cancelled
        private void webcamEnd (Constants.TestTypes testType, int uniqueID)
        {
-               if(! currentEventExecute.WebcamStarting) //no need to stop camera because it is not recording
+               //on contacts tests, we have WebcamStarting. No need to stop camera because it is not 
recording
+               if(testType != Constants.TestTypes.ENCODER && ! currentEventExecute.WebcamStarting)
                        return;
 
                WebcamManage.GuiContactsEncoder guiContactsEncoder = WebcamManage.GuiContactsEncoder.CONTACTS;


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