From 3c323d2cbbbb17ef27f1a5473b9d849b1b25f0d8 Mon Sep 17 00:00:00 2001 From: Daniel Schneider Date: Wed, 30 Oct 2019 20:00:21 +0100 Subject: [PATCH] #17661 --- lib/private/Preview/Movie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5