]> source.dussan.org Git - nextcloud-server.git/commitdiff
#17661 17759/head
authorDaniel Schneider <daniel@schneidoa.de>
Wed, 30 Oct 2019 19:00:21 +0000 (20:00 +0100)
committerDaniel Schneider <daniel@schneidoa.de>
Wed, 30 Oct 2019 19:00:21 +0000 (20:00 +0100)
lib/private/Preview/Movie.php

index 2f64811b45e457500c1b1eef0806d7ddf49d31c0..60fe443804a7e2c80072c1a75da880ff04c65aad 100644 (file)
@@ -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;