diff options
author | Daniel Schneider <daniel@schneidoa.de> | 2019-10-30 20:00:21 +0100 |
---|---|---|
committer | Daniel Schneider <daniel@schneidoa.de> | 2019-10-30 20:00:21 +0100 |
commit | 3c323d2cbbbb17ef27f1a5473b9d849b1b25f0d8 (patch) | |
tree | 01624ccbd7653a8195051b2d172503e77c56ab98 /lib/private/Preview | |
parent | 938428c2756c658aab3a18937b06105b8004aae3 (diff) | |
download | nextcloud-server-3c323d2cbbbb17ef27f1a5473b9d849b1b25f0d8.tar.gz nextcloud-server-3c323d2cbbbb17ef27f1a5473b9d849b1b25f0d8.zip |
#17661
Diffstat (limited to 'lib/private/Preview')
-rw-r--r-- | lib/private/Preview/Movie.php | 2 |
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; |