From c75f8fceec58f2b9ed36f78c8ca02ce1f5f2625f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 25 Jul 2019 15:27:44 +0100 Subject: Non-working FFmpeg context cache. --- src/lib/ffmpeg.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/lib/ffmpeg.h') diff --git a/src/lib/ffmpeg.h b/src/lib/ffmpeg.h index 10517055c..a8e639a6f 100644 --- a/src/lib/ffmpeg.h +++ b/src/lib/ffmpeg.h @@ -23,6 +23,7 @@ #include "file_group.h" #include "ffmpeg_subtitle_period.h" +#include "encrypted_ecinema_kdm.h" extern "C" { #include } @@ -61,9 +62,7 @@ protected: boost::shared_ptr _ffmpeg_content; - uint8_t* _avio_buffer; int _avio_buffer_size; - AVIOContext* _avio_context; FileGroup _file_group; AVFormatContext* _format_context; @@ -85,6 +84,21 @@ private: static void ffmpeg_log_callback (void* ptr, int level, const char* fmt, va_list vl); static boost::weak_ptr _ffmpeg_log; + + struct Cache + { + Cache (std::vector paths_, boost::optional kdm_, AVFormatContext* format_context_) + : paths(paths_) + , kdm(kdm_) + , format_context(format_context_) + {} + + std::vector paths; + boost::optional kdm; + AVFormatContext* format_context; + }; + + static std::list _cache; }; #endif -- cgit v1.2.3