Movie#getThumbnail(): compare Movie#generateThumbNail() to null, not false

Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
pull/18511/head
Alexander A. Klimov 5 years ago
parent bc291d50c3
commit 7cc2143bb3
  1. 4
      lib/private/Preview/Movie.php

@ -52,9 +52,9 @@ class Movie extends ProviderV2 {
$absPath = $this->getLocalFile($file, 5242880); // only use the first 5MB
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 5);
if ($result === false) {
if ($result === null) {
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 1);
if ($result === false) {
if ($result === null) {
$result = $this->generateThumbNail($maxX, $maxY, $absPath, 0);
}
}

Loading…
Cancel
Save