]> 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 f8243ff3384d650ddac583d34e8031ded3fac0b5..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;
@@ -222,7 +222,6 @@ private:
        int frame_height_mbaligned;
 
        DiskSpaceEstimator *disk_space_estimator;
-       LatencyHistogram mixer_latency_histogram, qs_latency_histogram;
 };
 
 #endif  // !defined(_QUICKSYNC_ENCODER_IMPL_H)