diff options
-rw-r--r-- | lib/private/Preview/Movie.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/Preview/Movie.php b/lib/private/Preview/Movie.php index b5842d11dd5..13d868cd583 100644 --- a/lib/private/Preview/Movie.php +++ b/lib/private/Preview/Movie.php @@ -126,9 +126,9 @@ class Movie extends ProviderV2 { if ($binaryType === 'avconv') { $cmd = [$this->binary, '-y', '-ss', (string)$second, - '-i', $absPath, - '-an', '-f', 'mjpeg', '-vframes', '1', '-vsync', '1', - $tmpPath]; + '-i', $absPath, + '-an', '-f', 'mjpeg', '-vframes', '1', '-vsync', '1', + $tmpPath]; } elseif ($binaryType === 'ffmpeg') { $cmd = [$this->binary, '-y', '-ss', (string)$second, '-i', $absPath, @@ -144,10 +144,10 @@ class Movie extends ProviderV2 { $returnCode = -1; $output = ""; if (is_resource($proc)) { - $stdout = trim(stream_get_contents($pipes[1])); - $stderr = trim(stream_get_contents($pipes[2])); - $returnCode = proc_close($proc); - $output = $stdout . $stderr; + $stdout = trim(stream_get_contents($pipes[1])); + $stderr = trim(stream_get_contents($pipes[2])); + $returnCode = proc_close($proc); + $output = $stdout . $stderr; } if ($returnCode === 0) { |