[gst-devel] Dynamically adding and removing elements
Stefan Kost
ensonic at hora-obscura.de
Fri Dec 2 05:55:16 CET 2005
Hi Rong,
On Thu, 2005-12-01 at 19:48 -0800, rong wang wrote:
> Could elements be removed or added in the middle of
> streaming?
> for example, if we add EQ, later remove it, Could we
> do it?
> How could we do it?
>
Thats what I do
// get the pad of the elemnt afterwards
// block it
gst_pad_set_blocked(pad,TRUE);
// unlink old and link new
gst_element_unlink(old_elem,peer_elem);
gst_element_link(new_elem,peer_elem);
// unblock pad
gst_pad_set_blocked(pad,FALSE);
Stefan
More information about the gstreamer-devel
mailing list