+ DiskSpaceEstimator *disk_space_estimator;
+
+ std::unique_ptr<Mux> stream_mux; // To HTTP.
+ std::unique_ptr<AudioEncoder> stream_audio_encoder;
+ std::unique_ptr<X264Encoder> x264_encoder; // nullptr if not using x264.
+
+ std::string stream_mux_header;
+
+ std::atomic<int> quicksync_encoders_in_shutdown{0};
+
+ // Encoders that are shutdown, but need to call release_gl_resources()
+ // (or be deleted) from some thread with an OpenGL context.
+ std::vector<std::unique_ptr<QuickSyncEncoder>> qs_needing_cleanup; // Under <qs_mu>.