Bug in recording fixed.

This commit is contained in:
marek
2015-11-06 19:13:43 +01:00
parent 57291f3d5b
commit 51129eaf30
4 changed files with 25 additions and 11 deletions
+5 -5
View File
@@ -191,7 +191,11 @@ namespace KinectServer
List<List<byte>> lFrameRGBAllDevices = new List<List<byte>>();
List<List<float>> lFrameVertsAllDevices = new List<List<float>>();
oServer.GetStoredFrame(lFrameRGBAllDevices, lFrameVertsAllDevices);
bool success = oServer.GetStoredFrame(lFrameRGBAllDevices, lFrameVertsAllDevices);
//This indicates that there are no more stored frames.
if (!success)
break;
nFrames++;
int nVerticesTotal = 0;
@@ -200,10 +204,6 @@ namespace KinectServer
nVerticesTotal += lFrameVertsAllDevices[i].Count;
}
//This indicates that there are no more stored frames.
if (nVerticesTotal == 0)
break;
List<byte> lFrameRGB = new List<byte>();
List<Single> lFrameVerts = new List<Single>();