[chronojump] Minor change on starting camera stuff at Chronojump boot



commit dae730a780589ae92185887be8658e7f7c1632c0
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jul 20 16:40:18 2017 +0200

    Minor change on starting camera stuff at Chronojump boot

 src/gui/encoder.cs |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 5b47e1e..3170d35 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -443,12 +443,8 @@ public partial class ChronoJumpWindow
                encoderRProcAnalyze = new EncoderRProcAnalyze();
                
                captureCurvesBarsData = new ArrayList(0);
-               
-               try {   
-                       playVideoEncoderInitialSetup();
-               } catch {
-                       //it crashes on Raspberry, Banana
-               }
+
+               playVideoEncoderInitialSetup();
 
                capturingCsharp = encoderCaptureProcess.STOPPED;
 
@@ -6491,10 +6487,17 @@ public partial class ChronoJumpWindow
        static PlayerBin playerEncoder;
        private void playVideoEncoderInitialSetup() //this does not work on raspberry
        {
+               //TODO: use a try specific... study this further
                LogB.Information("Prepare video encoder");
-               playerEncoder = new PlayerBin();
-               viewport_video_play_encoder.Add(playerEncoder);
-               playerEncoder.SeeControlsBox(true);
+
+               try {
+                       playerEncoder = new PlayerBin();
+                       viewport_video_play_encoder.Add(playerEncoder);
+                       playerEncoder.SeeControlsBox(true);
+               } catch {
+                       LogB.Information("Catched on playVideoEncoderInitialSetup");
+                       //it crashes on Raspberry, Banana
+               }
        }
        void playVideoEncoderPrepare(bool play) 
        {


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