+
+ struct Cache
+ {
+ Cache (std::vector<boost::filesystem::path> paths_, boost::optional<EncryptedECinemaKDM> kdm_, AVFormatContext* format_context_)
+ : paths(paths_)
+ , kdm(kdm_)
+ , format_context(format_context_)
+ {}
+
+ std::vector<boost::filesystem::path> paths;
+ boost::optional<EncryptedECinemaKDM> kdm;
+ AVFormatContext* format_context;
+ };
+
+ static std::list<Cache> _cache;