summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-19 21:59:58 +0100
committerCarl Hetherington <cth@carlh.net>2025-09-03 10:32:30 +0200
commit2aaf1c483cff3f11017c351e89e31a9b4f9e96b3 (patch)
tree0e80f894e7965948b1ac5f47fafce14edf2d2c2a /src
parent988250e879048d399898d4db8caf1e3e225f727b (diff)
Tidy check to avoid get().
Diffstat (limited to 'src')
-rw-r--r--src/lib/player.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index 5e0db19f6..42b1733dc 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -798,11 +798,11 @@ Player::pass()
I think this is nothing to worry about since we will just add or
remove a little silence at the end of some content.
*/
- int64_t const error = labs(period.from.get() - _next_audio_time->get());
+ auto const error = DCPTime(period.from - *_next_audio_time).abs();
/* Let's not worry about less than a frame at 24fps */
- int64_t const too_much_error = DCPTime::from_frames(1, 24).get();
+ auto const too_much_error = DCPTime::from_frames(1, 24);
if (error >= too_much_error) {
- film->log()->log(fmt::format("Silence starting before or after last audio by {}", error), LogEntry::TYPE_ERROR);
+ film->log()->log(fmt::format("Silence starting before or after last audio by {}", error.to_string()), LogEntry::TYPE_ERROR);
}
DCPOMATIC_ASSERT(error < too_much_error);
period.from = *_next_audio_time;