]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Write to the tmp file in VideoThumbnails
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 7 Feb 2016 00:57:56 +0000 (01:57 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 7 Feb 2016 00:57:56 +0000 (01:57 +0100)
plugins/VideoThumbnails/VideoThumbnailsPlugin.php

index 8fbf169fe1ec442c3417cb7df89cb933f0fa3bb0..c6a69a97a6d93eb9d6409eadb0e7c2ee23bf78f6 100644 (file)
@@ -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');