<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Antoine Cellerier wrote:
<blockquote cite="mid20060711192907.GA27285@via.ecp.fr" type="cite">
  <pre wrap="">On Tue, Jul 11, 2006, Dugal Harris wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">A) It is impossible
B) It is trivial
C) Nobody cares?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
i guess that it was something like C) :p

The best way to do some kind of an event is:
 * create a VLC variable in p_libvlc
 * add a callback on this variable
 * change the variable's value every time you want the callback to be
   called (sounds kind of obvious :) )

Examples of callback usage can be found about everywhere in the source
code. Look for these functions:
 * var_Create (variable creation)
 * var_Set / var_Get (some specialised versions of these functions
   exist, see include/variables.h)
 * var_AddCallback

I hope that this small email helps,
  </pre>
</blockquote>
Thanks very much - I have this working now.  <br>
<br>
A quick question: <br>
<br>
I want a video filter to raise an event in the app hosting libVLC i.e.
external to libVLC.  So i need a vlc_object_t instance known to both
the hosting app and the video filter.  What it the easiest way of
achieving this?  I am using p_libvlc with something like (in the
hosting app)<br>
<br>
vlc_t *p_vlc = vlc_current_object( _i_vlc );<br>
libvlc_t *p_libvlc = p_vlc->p_libvlc<br>
<br>
Thanks<br>
Dugal<br>
</body>
</html>

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html