diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-02-22 15:09:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-02-22 15:09:42 +0100 |
| commit | 674b74173d2d0ec8e178fa0938a4c48c2863c38b (patch) | |
| tree | 06b6dca69f2baaed06e09992ce6f8f2c63ac5b86 /src | |
| parent | a86638bfb04e2b77cd3fe2c1a73b658c223f4623 (diff) | |
Log audio latency under the player debug option.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/gl_video_view.cc | 2 | ||||
| -rw-r--r-- | src/wx/simple_video_view.cc | 2 |
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()); } |
