From: Israel A. C. L. <isr...@ho...> - 2008-11-25 21:09:56
|
Hi, I want to know if is it possible to link and unlink elements in a pipeline at runtime, what I mean is something like this: I have a pipeline like this: source -> sink that I put in playing state, but at desert moment I want to change it for something like this: source -> filter -> sink2, I tried pausing the pipeline, and then unlinking the sink element, and linking the filter and sink2 elements, but it couldn't link those elements, so if it is not possible, what is the propose of unlink elements?, or how can I link the new elements and play the pipeline? Best Regards Israel Cepeda _________________________________________________________________ P.D. Checa las nuevas fotos de mi Space http://home.services.spaces.live.com/ |
From: Wim T. <wim...@gm...> - 2008-11-25 21:13:55
|
On Tue, 2008-11-25 at 21:09 +0000, Israel Adrián Cepeda López wrote: > Hi, > > > > I want to know if is it possible to link and unlink elements in a > pipeline at runtime, what I mean is something like this: > > I have a pipeline like this: source -> sink that I put in playing > state, but at desert moment I want to change it for something like > this: > > source -> filter -> sink2, I tried pausing the pipeline, and then > unlinking the sink element, and linking the filter and sink2 > elements, but it couldn't link those elements, so if it is not > possible, what is the propose of unlink elements?, or how can I link > the new elements and play the pipeline? > This document has some information on how you reconfigure a pipeline at runtime: http://webcvs.freedesktop.org/gstreamer/gstreamer/docs/design/part-block.txt?revision=1.9&view=markup Wim > > Best Regards > Israel Cepeda > > > ______________________________________________________________________ > Obtén 5GB de almacenamiento completamente gratis, sólo ven a Skydrive > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ Gstreamer-embedded mailing list Gst...@li... https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded |
From: Israel C. <isr...@ho...> - 2008-11-28 17:23:57
|
Hi, I was trying all is in document and few more ideas but I look that it can't unlink the elements, this is an example of mi code: In the callback when the pad is already blocked I have: padsrc = gst_element_get_pad (source, "src");padsink = gst_element_get_pad (sink, "sink");g_assert (padsrc != NULL);g_assert (padsink != NULL);if (!gst_pad_unlink(padsrc, padsink)) g_warning ("Failed to unlink elements!"); any idea why it's not possible to unlink them? Best Regards! Israel Cepeda Software Engineer Monterrey, México> Subject: Re: [gst-embedded] link/unlink at runtime> From: wim...@gm...> To: isr...@ho...> CC: gst...@li...> Date: Tue, 25 Nov 2008 22:17:30 +0100> > On Tue, 2008-11-25 at 21:09 +0000, Israel Adrián Cepeda López wrote:> > Hi,> > > > > > > > I want to know if is it possible to link and unlink elements in a> > pipeline at runtime, what I mean is something like this:> > > > I have a pipeline like this: source -> sink that I put in playing> > state, but at desert moment I want to change it for something like> > this:> > > > source -> filter -> sink2, I tried pausing the pipeline, and then> > unlinking the sink element, and linking the filter and sink2> > elements, but it couldn't link those elements, so if it is not> > possible, what is the propose of unlink elements?, or how can I link> > the new elements and play the pipeline?> > > This document has some information on how you reconfigure a pipeline at> runtime:> > http://webcvs.freedesktop.org/gstreamer/gstreamer/docs/design/part-block.txt?revision=1.9&view=markup> > Wim> > > > > Best Regards> > Israel Cepeda> > > > > > ______________________________________________________________________> > Obtén 5GB de almacenamiento completamente gratis, sólo ven a Skydrive> > -------------------------------------------------------------------------> > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge> > Build the coolest Linux based applications with Moblin SDK & win great prizes> > Grand prize is a trip for two to an Open Source event anywhere in the world> > http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________ Gstreamer-embedded mailing list Gst...@li... https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded> _________________________________________________________________ P.D. Live Search tiene una sorpresa buenísima, chécala aquí. http://www.ganabuscando.com/Default.aspx |