From: Mikael Nordfeldth Date: Sun, 7 Feb 2016 00:57:56 +0000 (+0100) Subject: Write to the tmp file in VideoThumbnails X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6bec22ea4e90e648894c24d600a52aa60971340a;p=quix0rs-gnu-social.git Write to the tmp file in VideoThumbnails --- diff --git a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php index 8fbf169fe1..c6a69a97a6 100644 --- a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php +++ b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php @@ -67,7 +67,7 @@ class VideoThumbnailsPlugin extends Plugin common_log(LOG_ERR, 'Neither ffmpeg nor avconv was found in your PATH. Cannot create video thumbnail.'); return true; } - $result = exec($cmd.' -i '.escapeshellarg($file->getPath()).' -vcodec mjpeg -vframes 1 -f image2 -an '.escapeshellarg($imgPath)); + $result = exec($cmd.' -i '.escapeshellarg($file->getPath()).' -vcodec mjpeg -vframes 1 -f image2 -an '.escapeshellarg($tmp_imgPath)); if (!getimagesize($tmp_imgPath)) { common_debug('exec of "avconv" produced a bad/nonexisting image it seems');