From: William Date: Wed, 18 Jan 2023 19:32:09 +0000 (+0100) Subject: Update lib/private/PreviewManager.php X-Git-Tag: v26.0.0beta1~47^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F36225%2Fhead;p=nextcloud-server.git Update lib/private/PreviewManager.php fix lint issue Co-authored-by: Simon L. Signed-off-by: William --- diff --git a/lib/private/PreviewManager.php b/lib/private/PreviewManager.php index eac3f40efc2..367f0c1c057 100644 --- a/lib/private/PreviewManager.php +++ b/lib/private/PreviewManager.php @@ -417,9 +417,8 @@ class PreviewManager implements IPreview { // Video requires avconv or ffmpeg if (in_array(Preview\Movie::class, $this->getEnabledDefaultProvider())) { - $movieBinary = $this->config->getSystemValue('preview_ffmpeg_path', null); - if(!is_string($movieBinary)){ + if (!is_string($movieBinary)) { $movieBinary = $this->binaryFinder->findBinaryPath('avconv'); if (!is_string($movieBinary)) { $movieBinary = $this->binaryFinder->findBinaryPath('ffmpeg');