link/unlink at runtime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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: link/unlink at runtime> From: wim.taymans at gmail.com> To: israel4c at hotmail.com> CC: gstreamer-embedded at lists.sourceforge.net> 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 Gstreamer-embedded at lists.sourceforge.net 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20081128/11200896/attachment.htm>


[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux