From: Steinar H. Gunderson Date: Sat, 9 Mar 2019 20:35:59 +0000 (+0100) Subject: Fix a hang on exit when doing MJPEG encoding with VA-API. X-Git-Tag: 1.8.3~6 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=b626186bffe85f4eeb135861bd02b752aa9001da Fix a hang on exit when doing MJPEG encoding with VA-API. --- diff --git a/nageru/mjpeg_encoder.cpp b/nageru/mjpeg_encoder.cpp index 4ad0797..3f98cd0 100644 --- a/nageru/mjpeg_encoder.cpp +++ b/nageru/mjpeg_encoder.cpp @@ -208,6 +208,7 @@ void MJPEGEncoder::stop() running = false; should_quit = true; any_frames_to_be_encoded.notify_all(); + any_frames_encoding.notify_all(); encoder_thread.join(); if (va_dpy != nullptr) { va_receiver_thread.join();