]> git.sesse.net Git - nageru/commitdiff
Fix a hang on exit when doing MJPEG encoding with VA-API.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 9 Mar 2019 20:35:59 +0000 (21:35 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 9 Mar 2019 20:35:59 +0000 (21:35 +0100)
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();