[vlc-devel] VLC 0.9.2 status
dionoea at videolan.org
Mon Sep 8 19:09:02 CEST 2008
On Mon, Sep 08, 2008, Rémi Denis-Courmont wrote:
> I hope we're not shipping LUA... considering the lack of object as well as
> thread safety in its current form.
The only lua module which currently uses threads is the lua http
interface (callbacks). All the others should be safe.
As for object safety, it's as safe as any C code. If you cast to
something which isn't safe then you'll run into issues. Note that Lua
VLC object usage implements some safeguards that prevent mixing up
object types in most cases anway.
Lua code can only be modified by the VLC user anyway ... exactly as if
he were modifying a VLC C source code file and recompiling (except that
you don't need the build env). So object safety is a non issue in my
opinion (unless I missunderstood what you were talking about).
Thread safety has to be addressed though. I can add a big warning in the
HTTP interface so that users are aware of potential risks when they use
it. (And no, this cannot be fixed before we release as it requires some
major changes to the way we use Lua)
More information about the vlc-devel