We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc9ecfb commit 4f4daa4Copy full SHA for 4f4daa4
1 file changed
src/cameras.c
@@ -1048,7 +1048,6 @@ int freenect_stop_depth(freenect_device *dev)
1048
return -1;
1049
1050
dev->depth.running = 0;
1051
- freenect_destroy_registration(&(dev->registration));
1052
write_register(dev, 0x06, 0x00); // stop depth stream
1053
1054
res = fnusb_stop_iso(&dev->usb_cam, &dev->depth_isoc);
@@ -1057,6 +1056,7 @@ int freenect_stop_depth(freenect_device *dev)
1057
1056
return res;
1058
}
1059
+ freenect_destroy_registration(&(dev->registration));
1060
stream_freebufs(ctx, &dev->depth);
1061
return 0;
1062
0 commit comments