[gst-devel] attaching a listener to autoplugging code

Quan Nguyen friday_morning at yahoo.com
Tue Jan 13 14:34:07 CET 2004


Actually, this is how I'm doing attaching a listener to a spider, and it works in Gstreamer 0.7.3:
 
pipeline = gst_parse_launch ("filesrc name=my_filesrc ! spider ! identity name=my_listnener ! osssink", &error);
filesrc = gst_bin_get_by_name (GST_BIN (pipeline), "my_filesrc");
g_object_set (G_OBJECT (filessrc), "location", "./sample.mp3", NULL);
 
That same code doesn't work in Gstreamer 0.6.4.  Is there any way of getting it to work in 0.6.4?  Thanks.  

Ronald Bultje <rbultje at ronald.bitfreak.net> wrote:
Hi Quan,

On Mon, 2004-01-12 at 19:53, Quan Nguyen wrote:
> Thanks. I tried it, but I get the following error when I use
> gst_parse_launch:

You're not connecting to 'error' signals and such...

> pipeline = gst_parse_launch ("filesrc name=my_filesrc ! spider !
> identity name=my_listnener ! osssink", &error);

You're not actually giving a file location.

Ronald

-- 
Ronald Bultje 
Linux Video/Multimedia developer



---------------------------------
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/20040113/e187fa83/attachment.htm>


More information about the gstreamer-devel mailing list