[gst-devel] attaching a listener to autoplugging code

Quan Nguyen friday_morning at yahoo.com
Fri Jan 9 14:27:00 CET 2004


oops.  I forgot to attach my question.  My question is how can I attach a listener to the pipeline if I am using the autoplugging technique?  I attached the listener as shown below, but I couldn't get any data to the listener.  Somehow the audio still plays, so the autoplugging code works.  It's just that the listener does not seem to even be present.  Does anyone have any ideas?  Thanks.

Quan Nguyen <friday_morning at yahoo.com> wrote:

I followed the autoplugging example posted in the documentation successfully, and now I would like to attach a listener to the pipeline so that I can pass the audio data to other components.  I understand that the proper way of doing this is to not use a listener and write a plugin, but there is a learning curve for that, and I need to have something working soon as a proof of concept.  

I would like to attach a listener to the pipeline that is created after the proper plugin has been selected by the autoplugger.  But the following code doesn't work:

(after creating the listener and attaching it to a handoff)...

new_element = gst_autoplug_to_renderers(autoplug, caps, listener, osssink, NULL);

The audio plays, but the listener code is never called.

 


---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20040109/70f7eaf0/attachment.htm>


More information about the gstreamer-devel mailing list