microsoftarchive / KinectCommonBridge

Other
113 stars 43 forks source link

Bug in KCBGetAllFrameData() #14

Closed newstzpz closed 10 years ago

newstzpz commented 10 years ago

In lines 879, 888, 904, 913, 922 and 931 of KCBv2Lib.cpp, a reference to the variable TimeStamp, instead of the variable itself, should be passed to get_RelativeTime(). For example:

// get timestamp CHECK_HR(hr = pBodyFrame->get_RelativeTime(reinterpret_cast<TIMESPAN*>(&pstBodyFrame->TimeStamp)));

mkostin commented 10 years ago

Thanks again @newstzpz for you input and previous notes. Please don't hesitate to provide pull request with a fix if you face an issue and have already fixed it on your side. Fixed, closing.