diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-10-05 01:34:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-10-05 01:34:07 +0100 |
| commit | 35c0a33f8da3b1f99ec32a8c42f578cbc063e7e4 (patch) | |
| tree | bc1827210ad379143236bafd0875252959ef6b99 /src/lib/config.h | |
| parent | 46ffbecc24e997c91c152a6e7154747b2e76a904 (diff) | |
Add configuration option to set writer's maximum frames in memory.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 2d45f14f0..afa362a4c 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -345,6 +345,10 @@ public: return _last_player_load_directory; } + int frames_in_memory_multiplier () const { + return _frames_in_memory_multiplier; + } + void set_master_encoding_threads (int n) { maybe_set (_master_encoding_threads, n); } @@ -604,6 +608,10 @@ public: maybe_set (_dcp_asset_filename_format, n); } + void set_frames_in_memory_multiplier (int m) { + maybe_set (_frames_in_memory_multiplier, m); + } + void clear_history () { _history.clear (); changed (); @@ -771,6 +779,7 @@ private: boost::optional<std::string> _sound_output; std::string _cover_sheet; boost::optional<boost::filesystem::path> _last_player_load_directory; + int _frames_in_memory_multiplier; /** Singleton instance, or 0 */ static Config* _instance; |
