Open wang-bin opened 1 year ago
the issue is in MS_ENSURE(result);
in ReadComplete
.
I was able to make it work correctly by replacing it with
if (FAILED(result)) {
thread([=]{ frameAvailable(VideoFrame().setTimestamp(TimestampEOS)); }).detach();
return;
}
but this doesn't seem right. Doing just frameAvailable
without a thread makes it hang as well
when the BRAW SDK returns an error, MDK doesn't seem to handle it well, it hangs instead of returning an empty frame or something recoverable