Fix Webcam Start and Stop.

This commit is contained in:
2019-03-10 18:20:23 +01:00
parent 47c7694b2d
commit ee1fe3000c

View File

@@ -114,6 +114,7 @@ namespace VAR.Toolbox.Code
public void Start()
{
control.Run();
int result;
result = nullrenderer.Run(0);
if (result < 0) throw new Exception("Webcam Start failure");
@@ -133,6 +134,7 @@ namespace VAR.Toolbox.Code
if (result < 0) throw new Exception("Webcam Stop failure");
result = nullrenderer.Stop();
if (result < 0) throw new Exception("Webcam Stop failure");
control.Stop();
active = false;
}