summaryrefslogtreecommitdiffstats
path: root/lib/private/preview
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-10 11:46:46 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-10 11:46:46 +0100
commitdf288605d4b9bf6996830df981a52b0058b95a24 (patch)
treee3c366cf66d5d600fa210b7a92ffc756f164a87e /lib/private/preview
parent4b5083e3ca573bc4e57e253b7e4229d63cb4ccc9 (diff)
downloadnextcloud-server-df288605d4b9bf6996830df981a52b0058b95a24.tar.gz
nextcloud-server-df288605d4b9bf6996830df981a52b0058b95a24.zip
Fixed undefined variable error when using avconv
Diffstat (limited to 'lib/private/preview')
-rw-r--r--lib/private/preview/movies.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/preview/movies.php b/lib/private/preview/movies.php
index 3ba3bdf120e..7c9f009a9c6 100644
--- a/lib/private/preview/movies.php
+++ b/lib/private/preview/movies.php
@@ -19,6 +19,8 @@ function findBinaryPath($program) {
// movie preview is currently not supported on Windows
if (!\OC_Util::runningOnWindows()) {
$isExecEnabled = !in_array('exec', explode(', ', ini_get('disable_functions')));
+ $ffmpegBinary = null;
+ $avconvBinary = null;
if ($isExecEnabled) {
$avconvBinary = findBinaryPath('avconv');