aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-04 01:43:44 +0100
committerdec05eba <dec05eba@protonmail.com>2022-03-04 01:43:44 +0100
commitd037e38d8e65e8dc20e783e03fdb7474ed93cf4c (patch)
treebd3cccacd29c6a102ad99d9760720a0c2752673d /include
parenta13c19e31cb033730fa179a90f0bc5bd961bd3dc (diff)
Do not call ffprobe for thumbnails unless its guaranteed to be a local video file
Diffstat (limited to 'include')
-rw-r--r--include/FileAnalyzer.hpp3
1 files changed, 3 insertions, 0 deletions
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> dimensions;
std::optional<double> duration_seconds;
bool loaded;
+ bool metadata_loaded;
};
} \ No newline at end of file