]> git.sesse.net Git - nageru/blobdiff - quicksync_encoder_impl.h
Do some hotfixes to reduce mutex contention (but this needs a rework).
[nageru] / quicksync_encoder_impl.h
index 917420ca41af16a81ffdd3668bd6ea38f3fb78cc..85ac3ab980d525369e7f9c788d31dd0b8208ce78 100644 (file)
@@ -135,7 +135,7 @@ private:
 
        bool is_shutdown = false;
        bool has_released_gl_resources = false;
-       bool use_zerocopy;
+       std::atomic<bool> use_zerocopy;
        int drm_fd = -1;
 
        std::thread encode_thread, storage_thread;