]> git.sesse.net Git - vlc/commit
CMML: do not (ab)use the interface subsystem
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 May 2009 15:50:15 +0000 (18:50 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 May 2009 17:01:36 +0000 (20:01 +0300)
commit94324e9f61a5733f1f682f333001af82f733b283
tree98e16edf98cf731f324a0f3b4f76af662cf409ef
parent9e8ea4a66948f20483ffdda1d9eb83f3798d2dd1
CMML: do not (ab)use the interface subsystem

Only the core can safely destroy an interface, otherwise, the other
component could race against the core in joining the interface thread
or destroying the interface object.
The fire and forget status of interfaces is by design, and is expected
by -at least- the VLC binary, the NT service plugin and the Remote
Control interface plugin. Anyway, that is pretty the only point of
creating an interface instead of a private thread/object.
modules/codec/cmml/cmml.c
modules/codec/cmml/intf.c