diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-08 10:48:55 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-08 10:48:55 +0200 |
commit | 23ab8cc08d2d6281ef56c184f1e1e905e70a2a22 (patch) | |
tree | df1c2d59db08da7ea12e9359b7583e622a8ff0f2 /src/plugins | |
parent | 244ee01df48d702ff126a73ee36911b43adfdba8 (diff) |
Matrix: fix thumbnail upload of small thumbnails, fix small thumbnail creation if webp
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 64796eb..b471522 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -3553,7 +3553,7 @@ namespace QuickMedia { if(upload_thumbnail_result != PluginResult::OK) { close(tmp_file); remove(tmp_filename); - return upload_thumbnail_result; + show_notification("QuickMedia", "Video was uploaded without a thumbnail, error: " + err_msg, Urgency::CRITICAL); } } else { fprintf(stderr, "Failed to get first frame of video, ignoring thumbnail...\n"); @@ -3568,7 +3568,7 @@ namespace QuickMedia { int tmp_file = mkstemp(tmp_filename); if(tmp_file != -1) { std::string thumbnail_path; - if(create_thumbnail(filepath, tmp_filename, thumbnail_max_size, file_analyzer.get_content_type())) + if(create_thumbnail(filepath, tmp_filename, thumbnail_max_size, file_analyzer.get_content_type(), true)) thumbnail_path = tmp_filename; else thumbnail_path = filepath; |