From: Steinar H. Gunderson Date: Sun, 29 Apr 2018 10:10:05 +0000 (+0200) Subject: Remove unused should_quit member. X-Git-Tag: 1.7.3~4 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=89d920f2f90fc8412caa1ea36ecf10132654ddcb Remove unused should_quit member. --- diff --git a/mixer.cpp b/mixer.cpp index 7a3f437..5d01800 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -503,11 +503,6 @@ Mixer::~Mixer() BMUSBCapture::stop_bm_thread(); for (unsigned card_index = 0; card_index < num_cards + num_video_inputs + num_html_inputs; ++card_index) { - { - unique_lock lock(card_mutex); - cards[card_index].should_quit = true; // Unblock thread. - cards[card_index].new_frames_changed.notify_all(); - } cards[card_index].capture->stop_dequeue_thread(); if (cards[card_index].output) { cards[card_index].output->end_output(); diff --git a/mixer.h b/mixer.h index d1bf795..32a1ea4 100644 --- a/mixer.h +++ b/mixer.h @@ -532,8 +532,7 @@ private: std::chrono::steady_clock::time_point received_timestamp = std::chrono::steady_clock::time_point::min(); }; std::deque new_frames; - bool should_quit = false; - std::condition_variable new_frames_changed; // Set whenever new_frames (or should_quit) is changed. + std::condition_variable new_frames_changed; // Set whenever new_frames is changed. QueueLengthPolicy queue_length_policy; // Refers to the "new_frames" queue.