From 92b40d523dbe8f7e416fc9cc0ecf86ecc62a7479 Mon Sep 17 00:00:00 2001
From: jonathan <jb@amazing-discoveries.org>
Date: Mon, 17 Jan 2022 12:02:16 +0100
Subject: [PATCH] add debug message for fixing duration

---
 ffplayout/utils.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ffplayout/utils.py b/ffplayout/utils.py
index 03d558e1..d361f87c 100644
--- a/ffplayout/utils.py
+++ b/ffplayout/utils.py
@@ -931,6 +931,9 @@ def src_or_dummy(node):
     elif node.get('source') and Path(node['source']).is_file():
         if probe.format.get('duration') and not math.isclose(
                 probe.format['duration'], node['duration'], abs_tol=3):
+            messenger.debug(
+                f"fix duration for: \"{node['source']}\" "
+                f"at \"{sec_to_time(node['begin'])}\"")
             node['duration'] = probe.format['duration']
 
         if node['out'] > node['duration']: