]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
VideoThumbnails failure detection improved.
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 29 Apr 2014 17:45:42 +0000 (19:45 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 29 Apr 2014 17:45:42 +0000 (19:45 +0200)
plugins/VideoThumbnails/VideoThumbnailsPlugin.php

index a8f4dcbb5f2de5321bf2fa73798b808b4c77fcd7..254931e5fbc0c9d0286f1f2eb18ca7474171347f 100644 (file)
@@ -62,7 +62,7 @@ class VideoThumbnailsPlugin extends Plugin
         }
 
         // We failed to get a frame.
-        if ($frame === null) {
+        if (!$frame instanceof ffmpeg_frame) {
             return true;
         }