error while linking the gstreamer pad elements in qt creator

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

error while linking the gstreamer pad elements in qt creator

laxman
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");
   queue_pad1 = queue1->getStaticPad("queue1_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

please help me...

Thank you,

Regards,
laxman





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: error while linking the gstreamer pad elements in qt creator

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment