Reinhard Max 2024-05-29 11:50:51 +00:00 committed by Git OBS Bridge
parent 62a06df06f
commit 9e7f32d9ae

View File

@ -11,30 +11,13 @@
time_offset=-1000 time_offset=-1000
--- reference.c.orig --- reference.c.orig
+++ reference.c +++ reference.c
@@ -550,6 +550,16 @@ is_step_limit_reached(double offset, dou @@ -562,10 +562,13 @@ is_offset_ok(double offset)
}
/* ================================================== */
+static unsigned long
+dtul(double x)
+{
+ union {
+ double a;
+ unsigned long b;
+ } tmp;
+ tmp.a = x;
+ return tmp.b;
+}
static int
is_offset_ok(double offset)
@@ -562,10 +572,13 @@ is_offset_ok(double offset)
return 1; return 1;
} }
+ LOG(LOGS_WARN, "LULU1: %.020f, %016lx ", fabs(offset), dtul(fabs(offset))); + LOG(LOGS_WARN, "HERE: %.010f ", fabs(offset));
+ LOG(LOGS_WARN, "LULU2: %.020f, %016lx ", max_offset, dtul(max_offset)); + LOG(LOGS_WARN, "HERE: %.010f ", max_offset);
+ LOG(LOGS_WARN, "LULU3: =================================================="); + LOG(LOGS_WARN, "HERE: ====================");
if (fabs(offset) > max_offset) { if (fabs(offset) > max_offset) {
LOG(LOGS_WARN, LOG(LOGS_WARN,
- "Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ", - "Adjustment of %.3f seconds exceeds the allowed maximum of %.3f seconds (%s) ",