Le mercredi 10 octobre 2018 à 06:09 -0500, laxman a écrit :
> Hi,
> This is laxman. i have been working on gstreamer since three months.
> i got
> the problem while linking gstreamer pad elements in qt creator.
> below two are my pad elements i have created.
>
> tee_pad1 = tee->getRequestPad("tee_src");
If you look at gst-inspect-1.0 tee output, you'll find that the
template for tee pads naming is "src_%u", which means it will be in the
format of "src_0", "src_1", etc. When requesting pads, you can simply
pass the template "src_%u" in order to let tee choose a name.
> queue_pad1 = queue1->getStaticPad("queue1_sink");
Queue element pad name is just "sink".
>
> I have created to pads and trying to link them using link. based on c
> gstreamer code.
>
> tee_pad1->link(queue_pad1); //not linking application is going to
> crash in
> qt
Clearly you didn't validate the value of queue_pad1 and tee_pad1.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel