Running dynamic pipeline of compositor gets segmentation fault

David Ing ding at panopto.com
Sat May 11 13:16:44 UTC 2019


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:
https://stackoverflow.com/questions/191757/how-to-concatenate-a-stdstring-and-an-int

Also I wonder if it is necessary to pause the pipeline before you start
removing pads and linking new ones.

On Sat, May 11, 2019, 12:30 AM longkas <longkas at gmail.com> wrote:

>
> int padIdx = 0;
>
> //remove
> GstPad* pad = gst_element_get_static_pad(compositor, "sink_" + padIdx );
> gst_element_remove_pad(compositor, pad);
>
> //create a new pad
> padIdx ++;
> GstPad* pad = gst_element_get_request_pad(compositor, "sink_" + padIdx);
>
> //link
> gst_pad_link(srcPad, pad);
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190511/bc466bbb/attachment.html>


More information about the gstreamer-devel mailing list