fixes errors

This commit is contained in:
JohannesItten
2026-07-09 19:07:59 +03:00
parent 79e0e0e81a
commit 944f330eb3
+5 -2
View File
@@ -152,12 +152,15 @@ class PiPNode : public dmf::NodeBase {
} }
index++; index++;
} else if (st == MXL_ERR_TIMEOUT) { } else if (st == MXL_ERR_TIMEOUT ||
st == MXL_ERR_OUT_OF_RANGE_TOO_EARLY ||
st == MXL_ERR_OUT_OF_RANGE_TOO_LATE) {
timeout_count++; timeout_count++;
const uint64_t current = mxlGetCurrentIndex(&rate); const uint64_t current = mxlGetCurrentIndex(&rate);
index = (current > index) ? current : index + 1; index = (current > index) ? current : index + 1;
if (timeout_count % 25 == 1) if (timeout_count % 25 == 1)
log("sync timeout frames=%llu timeouts=%llu", frame_count, timeout_count); log("sync stall (%s) frames=%llu count=%llu",
dmf::mxl_status_str(st), frame_count, timeout_count);
} else { } else {
log("sync error (%s) at index=%llu", dmf::mxl_status_str(st), index); log("sync error (%s) at index=%llu", dmf::mxl_status_str(st), index);