Skip to content

Commit 62f0a0d

Browse files
committed
OpenNI2-FreenectDriver: Don't start streams before setting their formats
Signed-off-by: Benn Snyder <[email protected]>
1 parent 867ca06 commit 62f0a0d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

OpenNI2-FreenectDriver/src/DeviceDriver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,10 @@ namespace FreenectDriver
7272
LogError("Cannot create a stream of type " + to_string(sensorType));
7373
return NULL;
7474
case ONI_SENSOR_COLOR:
75-
Freenect::FreenectDevice::startVideo();
7675
if (! color)
7776
color = new ColorStream(this);
7877
return color;
7978
case ONI_SENSOR_DEPTH:
80-
Freenect::FreenectDevice::startDepth();
8179
if (! depth)
8280
depth = new DepthStream(this);
8381
return depth;

0 commit comments

Comments
 (0)