summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-11-30 02:04:05 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2024-11-30 02:05:03 +0100
commit2ded62f77d23a14f86802270204bce372892cff0 (patch)
treeaf0cba6ec7202190166a5610a186155773a6ee6b /src
parentDisable cmake re2 workaround on mac (diff)
downloadnheko-2ded62f77d23a14f86802270204bce372892cff0.tar.xz
Fix video thumbnails for small videos
Diffstat (limited to 'src')
-rw-r--r--src/timeline/InputBar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index 270e261e..e33c9711 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -1182,7 +1182,7 @@ MediaUpload::startUpload() QBuffer buffer(&ba); buffer.open(QIODevice::WriteOnly); thumbnail_.save(&buffer, "PNG", 0); - if (ba.size() >= (data.size() - data.size() / 10)) { + if (type() == MediaType::Image && ba.size() >= (data.size() - data.size() / 10)) { nhlog::ui()->info( "Thumbnail is not a lot smaller than original image, not uploading it"); nhlog::ui()->debug(