]> git.sesse.net Git - nageru/blobdiff - nageru/video_encoder.h
Fix a Clang 19 warning.
[nageru] / nageru / video_encoder.h
index 91d2c756471a90eac5dbdc3b6d3e60982580fc59..6301f50d3d7274283b22dc942882a9ee58ba697b 100644 (file)
@@ -6,6 +6,7 @@
 #define _VIDEO_ENCODER_H
 
 #include <epoxy/gl.h>
+#include <epoxy/gl_generated.h>
 #include <movit/image_format.h>
 #include <stdbool.h>
 #include <stdint.h>
@@ -14,7 +15,6 @@
 #include <mutex>
 #include <string>
 #include <vector>
-#include <chrono>
 
 extern "C" {
 #include <libavformat/avformat.h>
@@ -120,6 +120,7 @@ private:
 
        std::atomic<int> quicksync_encoders_in_shutdown{0};
        std::atomic<int> overriding_bitrate{0};
+       std::atomic<bool> should_quit{false};
 
        // Encoders that are shutdown, but need to call release_gl_resources()
        // (or be deleted) from some thread with an OpenGL context.