From 2f56230d4161d0339dc11f28fe15f6a547487028 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 6 Oct 2018 00:24:40 +0200 Subject: [PATCH] Remove an unused variable. --- player.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/player.cpp b/player.cpp index af44307..3a95891 100644 --- a/player.cpp +++ b/player.cpp @@ -89,7 +89,6 @@ void Player::thread_func(bool also_output_to_stream) // TODO: Lock to a rational multiple of the frame rate if possible. double speed = 0.5; - bool aborted = false; for (int frameno = 0; ; ++frameno) { // Ends when the clip ends. double out_pts = out_pts_origin + TIMEBASE * frameno / output_framerate; steady_clock::time_point next_frame_start = @@ -181,7 +180,7 @@ void Player::thread_func(bool also_output_to_stream) unique_lock lock(queue_state_mu); playing = false; } - if (done_callback != nullptr && !aborted) { + if (done_callback != nullptr) { done_callback(); } } -- 2.39.2