diff --git a/display.cpp b/display.cpp index c31e3ad..33711e6 100644 --- a/display.cpp +++ b/display.cpp @@ -964,7 +964,7 @@ void Display::render_help() { } } -bool Display::refresh(const AVFrame* left_frame, const AVFrame* right_frame, const std::string& current_total_browsable, const std::string& message) { +bool Display::possibly_refresh(const AVFrame* left_frame, const AVFrame* right_frame, const std::string& current_total_browsable, const std::string& message) { const bool has_updated_left_pts = previous_left_frame_pts_ != left_frame->pts; const bool has_updated_right_pts = previous_right_frame_pts_ != right_frame->pts; diff --git a/display.h b/display.h index 6668b96..6999c7e 100644 --- a/display.h +++ b/display.h @@ -240,7 +240,7 @@ class Display { ~Display(); // Copy frame to display - bool refresh(const AVFrame* left_frame, const AVFrame* right_frame, const std::string& current_total_browsable, const std::string& message); + bool possibly_refresh(const AVFrame* left_frame, const AVFrame* right_frame, const std::string& current_total_browsable, const std::string& message); // Handle events void input(); diff --git a/video_compare.cpp b/video_compare.cpp index 8a41789..bea0a89 100644 --- a/video_compare.cpp +++ b/video_compare.cpp @@ -910,7 +910,7 @@ void VideoCompare::compare() { // conditionally update the display; otherwise, sleep to conserve resources display_refresh_timer.update(); - if (display_->refresh(left_display_frame, right_display_frame, current_total_browsable, message)) { + if (display_->possibly_refresh(left_display_frame, right_display_frame, current_total_browsable, message)) { refresh_time_deque.push_back(-display_refresh_timer.us_until_target()); } else { sleep_for_ms(refresh_time_deque.average() / 1000);