diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-27 00:56:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-27 13:46:16 +0200 |
| commit | 607b1b4d8061237e3c90368c73c58a172a69c950 (patch) | |
| tree | bc1b4861f587828480886989a90d41fecbd344c6 /src/lib/j2k_encoder.h | |
| parent | 592fa9ba3913a37676260bd581398a6b49496677 (diff) | |
Use EnumIndexedVector in J2KEncoder.
Diffstat (limited to 'src/lib/j2k_encoder.h')
| -rw-r--r-- | src/lib/j2k_encoder.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/j2k_encoder.h b/src/lib/j2k_encoder.h index a52cf0d1f..4bdedb060 100644 --- a/src/lib/j2k_encoder.h +++ b/src/lib/j2k_encoder.h @@ -29,6 +29,7 @@ #include "cross.h" +#include "enum_indexed_vector.h" #include "event_history.h" #include "exception_store.h" #include "util.h" @@ -105,7 +106,7 @@ private: std::shared_ptr<Writer> _writer; Waker _waker; - std::shared_ptr<PlayerVideo> _last_player_video[static_cast<int>(Eyes::COUNT)]; + EnumIndexedVector<std::shared_ptr<PlayerVideo>, Eyes> _last_player_video; boost::optional<dcpomatic::DCPTime> _last_player_video_time; boost::signals2::scoped_connection _server_found_connection; |
