X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quicksync_encoder_impl.h;h=bc84e0adc7280beadb9e11ad1ee278eec59ac1ec;hb=9e47a2f661b9d292598ef0277e507458e3dad62f;hp=f8243ff3384d650ddac583d34e8031ded3fac0b5;hpb=1df7849fad1d0647a02951abaa60f9e4f40ce360;p=nageru diff --git a/quicksync_encoder_impl.h b/quicksync_encoder_impl.h index f8243ff..bc84e0a 100644 --- a/quicksync_encoder_impl.h +++ b/quicksync_encoder_impl.h @@ -135,7 +135,7 @@ private: bool is_shutdown = false; bool has_released_gl_resources = false; - bool use_zerocopy; + std::atomic use_zerocopy; int drm_fd = -1; std::thread encode_thread, storage_thread; @@ -162,6 +162,7 @@ private: std::map reorder_buffer; int quicksync_encoding_frame_num = 0; + std::mutex file_audio_encoder_mutex; std::unique_ptr file_audio_encoder; X264Encoder *x264_encoder; // nullptr if not using x264. @@ -222,7 +223,6 @@ private: int frame_height_mbaligned; DiskSpaceEstimator *disk_space_estimator; - LatencyHistogram mixer_latency_histogram, qs_latency_histogram; }; #endif // !defined(_QUICKSYNC_ENCODER_IMPL_H)