AW: Running dynamic pipeline of compositor gets segmentation fault

Thornton, Keith keith.thornton at zeiss.com
Sun May 12 09:00:55 UTC 2019


Hi,
I think padIdx needs to be limited. At some stage I seem to remember to 32. Better would be to let get_static_pad return the next available index.

-----Urspr√ľngliche Nachricht-----
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von longkas
Gesendet: Samstag, 11. Mai 2019 09:30
An: gstreamer-devel at lists.freedesktop.org
Betreff: Re: Running dynamic pipeline of compositor gets segmentation fault


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


More information about the gstreamer-devel mailing list