| 1279 | } |
| 1280 | |
| 1281 | XnStatus PlayerNode::HandleNodeDataBeginRecord(NodeDataBeginRecord record) |
| 1282 | { |
| 1283 | XN_VALIDATE_INPUT_PTR(m_pNodeNotifications); |
| 1284 | XnStatus nRetVal = record.Decode(); |
| 1285 | XN_IS_STATUS_OK(nRetVal); |
| 1286 | DEBUG_LOG_RECORD(record, "NodeDataBegin"); |
| 1287 | PlayerNodeInfo* pPlayerNodeInfo = GetPlayerNodeInfo(record.GetNodeID()); |
| 1288 | XN_VALIDATE_PTR(pPlayerNodeInfo, XN_STATUS_CORRUPT_FILE); |
| 1289 | if (!pPlayerNodeInfo->bValid) |
| 1290 | { |
| 1291 | XN_ASSERT(FALSE); |
| 1292 | return XN_STATUS_CORRUPT_FILE; |
| 1293 | } |
| 1294 | |
| 1295 | if (!pPlayerNodeInfo->bIsGenerator) |
| 1296 | { |
| 1297 | XN_ASSERT(FALSE); |
| 1298 | XN_LOG_ERROR_RETURN(XN_STATUS_CORRUPT_FILE, XN_MASK_OPEN_NI, "Got data for non-generator node '%s'", pPlayerNodeInfo->strName); |
| 1299 | } |
| 1300 | |
| 1301 | m_bDataBegun = TRUE; |
| 1302 | |
| 1303 | return XN_STATUS_OK; |
| 1304 | } |
| 1305 | |
| 1306 | XnStatus PlayerNode::HandleNewDataRecord(NewDataRecordHeader record, XnBool bReadPayload) |
| 1307 | { |
nothing calls this directly
no test coverage detected