[Pkg-owncloud-commits] [owncloud] 58/239: we better use 5MB (1024 * 1024 * 5 = 5242880) instead of 1MB. in some cases 1MB was no enough to generate thumbnail

David Prévot taffit at moszumanska.debian.org
Fri Nov 29 01:32:19 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 14e707503052de95aa091d02d8cc229a05d77e95
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Fri Nov 22 12:23:22 2013 +0100

    we better use 5MB (1024 * 1024 * 5 = 5242880) instead of 1MB.
    in some cases 1MB was no enough to generate thumbnail
---
 lib/private/preview/movies.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/private/preview/movies.php b/lib/private/preview/movies.php
index 3cbbaa9..ac771de 100644
--- a/lib/private/preview/movies.php
+++ b/lib/private/preview/movies.php
@@ -46,7 +46,9 @@ if (!\OC_Util::runningOnWindows()) {
 
 				$handle = $fileview->fopen($path, 'rb');
 
-				$firstmb = stream_get_contents($handle, 1048576); //1024 * 1024 = 1048576
+				// we better use 5MB (1024 * 1024 * 5 = 5242880) instead of 1MB.
+				// in some cases 1MB was no enough to generate thumbnail
+				$firstmb = stream_get_contents($handle, 5242880);
 				file_put_contents($absPath, $firstmb);
 
 				if (self::$avconvBinary) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list