]> git.sesse.net Git - nageru/commitdiff
Remove an unused variable.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 5 Oct 2018 22:24:40 +0000 (00:24 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 5 Oct 2018 22:24:40 +0000 (00:24 +0200)
player.cpp

index af443078c81dce95b17c4cadf66427aae8164b00..3a958917fff5639942bba4c8e713c562044bd2d5 100644 (file)
@@ -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<mutex> lock(queue_state_mu);
                        playing = false;
                }
-               if (done_callback != nullptr && !aborted) {
+               if (done_callback != nullptr) {
                        done_callback();
                }
        }