[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:47 CEST 2010


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

Lua: Allocine, grow buffer up to 500k

This seems a lot, but 65k definitively ain't enough for some
movies.

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

 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