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;
std::map<int, PendingFrame> reorder_buffer;
int quicksync_encoding_frame_num = 0;
+ std::mutex file_audio_encoder_mutex;
std::unique_ptr<AudioEncoder> file_audio_encoder;
X264Encoder *x264_encoder; // nullptr if not using x264.