summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Schneider <daniel@schneidoa.de>2019-10-30 20:00:21 +0100
committerDaniel Schneider <daniel@schneidoa.de>2019-10-30 20:00:21 +0100
commit3c323d2cbbbb17ef27f1a5473b9d849b1b25f0d8 (patch)
tree01624ccbd7653a8195051b2d172503e77c56ab98
parent938428c2756c658aab3a18937b06105b8004aae3 (diff)
downloadnextcloud-server-3c323d2cbbbb17ef27f1a5473b9d849b1b25f0d8.tar.gz
nextcloud-server-3c323d2cbbbb17ef27f1a5473b9d849b1b25f0d8.zip
#17661
-rw-r--r--lib/private/Preview/Movie.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/Movie.php b/lib/private/Preview/Movie.php
index 2f64811b45e..60fe443804a 100644
--- a/lib/private/Preview/Movie.php
+++ b/lib/private/Preview/Movie.php
@@ -88,8 +88,8 @@ class Movie extends ProviderV2 {
if ($returnCode === 0) {
$image = new \OC_Image();
$image->loadFromFile($tmpPath);
- unlink($tmpPath);
if ($image->valid()) {
+ unlink($tmpPath);
$image->scaleDownToFit($maxX, $maxY);
return $image;