From: Mikael Nordfeldth Date: Tue, 29 Apr 2014 17:45:42 +0000 (+0200) Subject: VideoThumbnails failure detection improved. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c1d2f2516ac361f26bfa0184d7c3f87abbbd10cc;p=quix0rs-gnu-social.git VideoThumbnails failure detection improved. --- diff --git a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php index a8f4dcbb5f..254931e5fb 100644 --- a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php +++ b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php @@ -62,7 +62,7 @@ class VideoThumbnailsPlugin extends Plugin } // We failed to get a frame. - if ($frame === null) { + if (!$frame instanceof ffmpeg_frame) { return true; }