]> git.sesse.net Git - nageru/blobdiff - nageru/mjpeg_encoder.cpp
Fix a hang on exit when doing MJPEG encoding with VA-API.
[nageru] / nageru / mjpeg_encoder.cpp
index 4ad0797c53f5f3e022e1869e2529ebdd2130e9f5..3f98cd0662a5e5be7eaec3240b6f267b3e8635e5 100644 (file)
@@ -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();