[vlc-commits] commit: Lua: Allocine, grow buffer up to 500k ( Jean-Philippe André )

git at videolan.org git at videolan.org
Sun Jun 6 12:59:49 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Philippe André <jpeg at videolan.org> | Sun Jun  6 18:17:29 2010 +0800| [a6d4afcf2c1557df0b63b306e1b3e3d330d115e6] | committer: Jean-Philippe André 

Lua: Allocine, grow buffer up to 500k

This seems a lot, but 65k definitively ain't enough for some
movies.
(cherry picked from commit 89dbfd782618074a2ee4122f0bead8a08917c805)

Signed-off-by: Jean-Philippe André <jpeg at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=a6d4afcf2c1557df0b63b306e1b3e3d330d115e6
---

 share/lua/extensions/allocine-fr.lua |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/share/lua/extensions/allocine-fr.lua b/share/lua/extensions/allocine-fr.lua
index e095cda..e3637c1 100644
--- a/share/lua/extensions/allocine-fr.lua
+++ b/share/lua/extensions/allocine-fr.lua
@@ -278,7 +278,8 @@ function open_fiche(url)
 
     -- Open stream
     local s = vlc.stream(url)
-    local data = s:read(65535)
+    -- Read max 500k (Note: 65k is not enough for the average note)
+    local data = s:read(500000)
 
     -- Buffer & temp variables
     local first = nil



More information about the vlc-commits mailing list