diff --git a/lib/private/Preview/Movie.php b/lib/private/Preview/Movie.php
index b7b7c98e50f0478524937540ebdb79df8e7bdf8a..57cf9ddeaf4b844fa56f80a76a3e3ef997024b62 100644
--- a/lib/private/Preview/Movie.php
+++ b/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);
 			}
 		}