summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-02-22 15:09:42 +0100
committerCarl Hetherington <cth@carlh.net>2025-02-22 15:09:42 +0100
commit674b74173d2d0ec8e178fa0938a4c48c2863c38b (patch)
tree06b6dca69f2baaed06e09992ce6f8f2c63ac5b86 /src
parenta86638bfb04e2b77cd3fe2c1a73b658c223f4623 (diff)
Log audio latency under the player debug option.
Diffstat (limited to 'src')
-rw-r--r--src/wx/gl_video_view.cc2
-rw-r--r--src/wx/simple_video_view.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc
index 1ac949759..9e53248f6 100644
--- a/src/wx/gl_video_view.cc
+++ b/src/wx/gl_video_view.cc
@@ -138,6 +138,8 @@ GLVideoView::check_for_butler_errors()
} catch (dcp::ReadError& e) {
error_dialog(get(), wxString::Format(_("Could not read DCP: %s"), std_to_wx(e.what())));
}
+
+ LOG_DEBUG_PLAYER("Latency %1", _viewer->average_latency());
}
diff --git a/src/wx/simple_video_view.cc b/src/wx/simple_video_view.cc
index 28638e267..c003be7b6 100644
--- a/src/wx/simple_video_view.cc
+++ b/src/wx/simple_video_view.cc
@@ -176,6 +176,8 @@ SimpleVideoView::timer ()
error_dialog(_panel, _("Could not play content"), std_to_wx(e.what()));
}
}
+
+ LOG_DEBUG_PLAYER("Latency %1", _viewer->average_latency());
}