[gst-devel] attaching a listener to autoplugging code
Ronald Bultje
rbultje at ronald.bitfreak.net
Sat Jan 10 02:37:00 CET 2004
Hi Quan,
On Fri, 2004-01-09 at 23:26, Quan Nguyen wrote:
> 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.
Assuming you use spider, you have the following pipeline (in gst-launch
syntax, you'll get the idea):
filesrc location=file ! spider ! osssink
The listener can simply be added to the pipeline like this:
filesrc location=file ! spider ! identity ! osssink
Then attach your signal callback to the identity object after reating
it, and you're done.
Ronald
--
Ronald Bultje <rbultje at ronald.bitfreak.net>
Linux Video/Multimedia developer
More information about the gstreamer-devel
mailing list