From d037e38d8e65e8dc20e783e03fdb7474ed93cf4c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 4 Mar 2022 01:43:44 +0100 Subject: Do not call ffprobe for thumbnails unless its guaranteed to be a local video file --- include/FileAnalyzer.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/FileAnalyzer.hpp b/include/FileAnalyzer.hpp index acc62d7..851a3e4 100644 --- a/include/FileAnalyzer.hpp +++ b/include/FileAnalyzer.hpp @@ -50,6 +50,8 @@ namespace QuickMedia { public: FileAnalyzer(); bool load_file(const char *filepath, bool load_file_metadata = true); + // Cached + bool load_metadata(); const std::string& get_filepath() const; ContentType get_content_type() const; @@ -66,5 +68,6 @@ namespace QuickMedia { std::optional dimensions; std::optional duration_seconds; bool loaded; + bool metadata_loaded; }; } \ No newline at end of file -- cgit v1.2.3