<div dir="ltr">Hi everyone, <div><br></div><div>Normally when you request a pad from a tee, you specify the name of the template 'src_%u' and then a new pads gets created with a name</div><div><br></div><div>src_0</div><div>src_1</div><div>src_2 </div><div>etc...</div><div><br></div><div>This time I was trying to specify the name of the pad myself, i.e. I wanted the first request pad created to be named 'src_1', the second one 'src_11', etc....</div><div><br></div><div>Is this possible? If so, how do I achieve this? </div><div><br></div><div>I've listed below all my unsuccessful attempts so far:</div><div><br></div><div>1 - </div><div><font face="monospace, monospace">gst_element_get_request_pad(tee, "src_1");</font></div><div><br></div><div>2 - </div><div><font face="monospace, monospace">tmpl = gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (tee), "src_%u");</font></div><div><font face="monospace, monospace">gst_element_request_pad(tee, tmpl, "src_1", NULL);</font></div><div><br></div><div>3 - </div><div><font face="monospace, monospace">tmpl_gen = gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (tee), "src_%u");</font></div><div><font face="monospace, monospace">caps = gst_pad_template_get_caps(tmpl_gen);</font></div><div><font face="monospace, monospace">tmpl = gst_pad_template_new(s,GST_PAD_TEMPLATE_DIRECTION(tmpl_gen), </font><span style="font-family:monospace,monospace">GST_PAD_TEMPLATE_PRESENCE(tmpl_gen</span><span style="font-family:monospace,monospace">), caps);</span></div><div><font face="monospace, monospace">gst_element_request_pad(tee, tmpl, "src_1", NULL);</font></div><div><br></div><div><br></div><div>Cheers, </div><div>Sérgio</div></div>