]> git.sesse.net Git - vlc/commitdiff
Lua: Allocine, grow buffer up to 500k
authorJean-Philippe André <jpeg@videolan.org>
Sun, 6 Jun 2010 10:17:29 +0000 (18:17 +0800)
committerJean-Philippe André <jpeg@videolan.org>
Sun, 6 Jun 2010 10:55:36 +0000 (18:55 +0800)
This seems a lot, but 65k definitively ain't enough for some
movies.

share/lua/extensions/allocine-fr.lua

index e095cda925f56145ce9b1d15eb1cda192dd865d8..e3637c17d3373f3de1fab64188b6ad0007fecb96 100644 (file)
@@ -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