]> git.sesse.net Git - vlc/commit
luasd: Force a garbage collect at the end of Run().
authorPierre d'Herbemont <pdherbemont@free.fr>
Fri, 5 Mar 2010 10:01:32 +0000 (11:01 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Fri, 5 Mar 2010 10:06:26 +0000 (11:06 +0100)
commit503a7851c50a83d1249528787929afeea3b81c93
treec9a9dbef2a8c113d3672d6bab02f7344bb29a7c2
parent15e7ff2ba809bf8b2999b254a36b209d69560ce9
luasd: Force a garbage collect at the end of Run().

Generally the core won't call Close() until the end of vlc's life. Hence
it's our last chance to gc collect before the end of vlc's life.

This gets important because some sd (freebox...) will open a vlc.stream
which (and that's an other issue) will eat 12MB at creation for a cache
that will never be completely filed. It also mean that if you vlc.stream
N small files, we may consume N * 12MB until finally lua decides to garabge
collect. And because we don't teach lua that vlc.stream takes 12MB this
is not likely to happen.
modules/misc/lua/services_discovery.c