fix(windows-nui): keep producing into ring while a frame is outstanding (removes deadlock that froze delivery after 1 depth frame)
This commit is contained in:
1 parent
30a2daef30
commit
200a947a1a
1 file changed
+7
-1
@@ -407,7 +407,13 @@ HRESULT VirtualKinectSensor::ImageStreamReleaseFrame(
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
stream->outstanding = false;
|
||||
const int stype = static_cast<int>(stream->type);
|
||||
LeaveCriticalSection(&lock_);
|
||||
static unsigned rel = 0;
|
||||
if (rel < 6) {
|
||||
ShimLog("ImageStreamReleaseFrame#%u type=%d", rel, stype);
|
||||
}
|
||||
++rel;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -452,7 +458,7 @@ void VirtualKinectSensor::BuildSkeletonFrame(const SourceFrame& src) {
|
||||
|
||||
void VirtualKinectSensor::FillStreams(const SourceFrame& src) {
|
||||
for (auto& stream : streams_) {
|
||||
if (!stream.open || stream.outstanding) {
|
||||
if (!stream.open) {
|
||||
continue;
|
||||
}
|
||||
const std::size_t next = (stream.has_frame)
|
||||
|
||||
Reference in new issue
Block a user