| 706 | } |
| 707 | |
| 708 | XnStatus PlayerNode::ReadRecordFields(Record &record) |
| 709 | { |
| 710 | XnUInt32 nBytesToRead = record.GetSize() - record.HEADER_SIZE; |
| 711 | XnUInt32 nBytesRead = 0; |
| 712 | XnStatus nRetVal = Read(record.GetData() + record.HEADER_SIZE, nBytesToRead, nBytesRead); |
| 713 | XN_IS_STATUS_OK(nRetVal); |
| 714 | if (nBytesRead < nBytesToRead) |
| 715 | { |
| 716 | XN_LOG_ERROR_RETURN(XN_STATUS_CORRUPT_FILE, XN_MASK_OPEN_NI, "Incorrect number of bytes read"); |
| 717 | } |
| 718 | return XN_STATUS_OK; |
| 719 | } |
| 720 | |
| 721 | XnStatus PlayerNode::ReadRecord(Record &record) |
| 722 | { |