Dynamically adding and removing branches of a tee...
enthusiastic geek
enthusiasticgeek at gmail.com
Tue Nov 6 08:10:37 PST 2012
The following works for me for removing a branch from tee. I am removing
src0 and keeping the src1 while the pipeline is still running. I am using
gstreamermm but the concept should be similar in C API.
Glib::RefPtr<Gst::Pad> srcPad =
gst()->pipeline->Gst::Bin::get_element("t")->get_static_pad("src0");
Glib::RefPtr<Gst::Pad> sinkPad =
gst()->pipeline->Gst::Bin::get_element("queue0")->get_static_pad("sink");
srcPad->set_blocked(true);
srcPad->unlink(sinkPad);
gst()->pipeline->Gst::Bin::get_element("t")->remove_pad(srcPad);
srcPad->set_blocked(false);
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Dynamically-adding-and-removing-branches-of-a-tee-tp973635p4656812.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list