Fix oni recorder to avoid getting corrupted
Check if SENSOR_DEPTH is NULL