<div dir="auto">Perhaps I am mistaken but I dont think you can concatenate a string literal with an integer using the + operator. Other methods are shown here: <a href="https://stackoverflow.com/questions/191757/how-to-concatenate-a-stdstring-and-an-int">https://stackoverflow.com/questions/191757/how-to-concatenate-a-stdstring-and-an-int</a><div dir="auto"><br></div><div dir="auto">Also I wonder if it is necessary to pause the pipeline before you start removing pads and linking new ones.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 11, 2019, 12:30 AM longkas <<a href="mailto:longkas@gmail.com">longkas@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
int padIdx = 0;<br>
<br>
//remove<br>
GstPad* pad = gst_element_get_static_pad(compositor, "sink_" + padIdx );<br>
gst_element_remove_pad(compositor, pad); <br>
<br>
//create a new pad<br>
padIdx ++;<br>
GstPad* pad = gst_element_get_request_pad(compositor, "sink_" + padIdx);<br>
<br>
//link<br>
gst_pad_link(srcPad, pad);<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>