error while linking the gstreamer pad elements in qt creator

Nicolas Dufresne nicolas at ndufresne.ca
Wed Oct 10 13:25:20 UTC 2018


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.

> 
> please help me...
> 
> Thank you,
> 
> Regards,
> laxman
> 
> 
> 
> 
> 
> --
> 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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20181010/b5d775c0/attachment.sig>


More information about the gstreamer-devel mailing list