<DIV>
<DIV>I am having a problem with calling a C++ object's member function from a handoff.&nbsp; I want to be able to call a member function of an object from a listener handoff function.&nbsp; I assume that I will have to pass to the handoff function a pointer to that object, but I do not know how to do it.&nbsp; Here is some sample code of what I am trying to do.</DIV>
<DIV>&nbsp;</DIV>
<DIV>...</DIV>
<DIV>g_signal_connect (G_OBJECT (listener), "handoff", G_CALLBACK (cb_manipulate), NULL);</DIV>
<DIV>...</DIV>
<DIV>&nbsp;</DIV>
<DIV>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>static void cb_manipulate (GstElement *element, GstData *data)</DIV>
<DIV>{</DIV>
<DIV>...</DIV>
<DIV>&nbsp;&nbsp; some_object-&gt;useful_func();</DIV>
<DIV>...</DIV>
<DIV>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>I want to be able to call useful_func() for some_object.&nbsp; My question is how do I pass more parameters to the handoff function?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Quan</DIV></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Hotjobs: <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/mail_footer_email/evt=21482/*http://hotjobs.sweepstakes.yahoo.com/signingbonus">Enter the "Signing Bonus" Sweepstakes</a>