<div dir="ltr">I am trying to create a dynamic pipeline through adding pads to a rtpbin object dynamically.<div><br></div><div>Have a callback handling the pad-added signal but it is never called for the "send_rtp_src_u%" pad that is to be created after creating the "send_rtp_sink_%u" pad. The Sending sink is added just fine but the rtpbin, when trying to add the sending source fails.</div><div><br></div><div>The error is "(gstrtpmediastream:4574): GStreamer-CRITICAL **: Padname send_rtp_src_0 is not unique in element rtpbin, not adding".</div><div><br></div><div>I have verified that the pad does not already exist(iterating through the list). </div><div><br></div><div><div>GstElement* rtp_bin = gst_bin_get_by_name(GST_BIN(pipeline),"rtpbin");</div></div><div>GstPadTemplate* rtp_sink_template = gst_element_class_get_pad_template(GST_ELEMENT_GET_CLASS(rtp_bin), send_rtp_sink_%u");<br></div><div><div>GstCaps* cap = GST_STATIC_CAPS("application/x-rtp, media=video");</div><div>GstPad* rtpsink = gst_element_request_pad(rtp_bin, rtp_sink_template, NULL, cap);</div></div><div><br></div><div><br></div><div>This is just some of my code. More can be made available if need be. </div><div><br></div><div>The pipeline is NOT playing and was made from a parse launch </div><div><br></div><div>Pipeline = "rtpbin name=rtpbin appsrc name=videoappsrc caps=\"application/x-rtp, media=video, clock-rate=90000, encoding-name=VP8-DRAFT-IETF-01, payload=96\" is-live=true ! tee name=videotee "</div><div><span class="" style="white-space:pre">                 </span>"appsrc name=audioappsrc caps=\"application/x-rtp, media=audio, clock-rate=8000, encoding-name=PCMA, payload=8\" is-live=true ! tee name=audiotee"</div><div><br></div><div><br></div><div><br></div><div>The overall goal is to be able to add an arbitrary number of tee splits for the rtpbin for each stream request so that the party getting the stream can provide control packets for each session created uniquely. This is so time-outs can be handle, audio/video sync for each stream requested, and all the other good things that rtcp brings to the table through the rtpbin.</div><div><br></div><div>Thanks!</div><div><br></div><div>P.S. I am using the newest release of gstreamer-1.0 on a xubuntu installation.</div></div>