[vlc-commits] commit: activex: implement async events handling for JavaScript ( Jean-Paul Saman )
git at videolan.org
git at videolan.org
Thu Mar 18 11:19:14 CET 2010
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Wed Feb 17 23:35:12 2010 +0100| [427a6f917a59399de7f6822b345d02f1b38544fb] | committer: Jean-Paul Saman
activex: implement async events handling for JavaScript
Events that do not originate from within the ActiveX JS context (which is a COM context)
cannot cross into ActiveX/COM context. All events received from libvlc are in a different
thread context then the ActiveX/COM code. Thus from a libvlc event handler callback it is
not possible to call into the ActiveX/COM context.
To solve this issue a seperate thread is created that manages sending of all events for
the ActiveX webplugin (including events from libvlc). All events are by default routed
through the GlobalInterfaceTable (GIT) which takes care ActiveX/COM calls that cross
different thread context in the ActiveX/COM world.
Signed-off-by: Jean-Paul Saman <jean-paul.saman at m2x.nl>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=427a6f917a59399de7f6822b345d02f1b38544fb
---
projects/activex/connectioncontainer.cpp | 228 ++++++++++++++++++++++++------
projects/activex/connectioncontainer.h | 19 ++-
2 files changed, 198 insertions(+), 49 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=427a6f917a59399de7f6822b345d02f1b38544fb
More information about the vlc-commits
mailing list