aboutsummaryrefslogtreecommitdiff
path: root/src/AsyncImageLoader.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-29 19:31:22 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-29 19:31:22 +0200
commit555f0e7e910b2231073734816727379e1276aa6c (patch)
tree2081bb231c0526e8fa20f195e049af6d23d2525d /src/AsyncImageLoader.cpp
parent1b82048e16ae998c780a31ff14317d4ac1fbbacd (diff)
Matrix: add media reply with ctrl+u
Diffstat (limited to 'src/AsyncImageLoader.cpp')
-rw-r--r--src/AsyncImageLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AsyncImageLoader.cpp b/src/AsyncImageLoader.cpp
index 09c01df..d12f9af 100644
--- a/src/AsyncImageLoader.cpp
+++ b/src/AsyncImageLoader.cpp
@@ -137,7 +137,7 @@ namespace QuickMedia {
}
if(is_content_type_video(file_analyzer.get_content_type())) {
- if(file_analyzer.load_metadata() && video_get_first_frame(file_analyzer, thumbnail_path_resized.data.c_str(), resize_target_size.x, resize_target_size.y)) {
+ if(file_analyzer.load_metadata() && video_get_middle_frame(file_analyzer, thumbnail_path_resized.data.c_str(), resize_target_size.x, resize_target_size.y)) {
thumbnail_data->loading_state = LoadingState::READY_TO_LOAD;
} else {
fprintf(stderr, "Failed to get video frame of %s\n", thumbnail_path.data.c_str());