How to investigate gst_element_link_many() funcion's error?

Sebastian Dröge sebastian at centricular.com
Mon Jun 12 09:17:07 UTC 2017


On Mon, 2017-06-12 at 13:44 +0900, Fred wrote:
>   I don't know how to fix link confirmation error.   Thank you for
> any reply in advance.
> 
> 1.  Following commands is working well.
> $gst-launch-1.0 -v rtspsrc
> location=rtsp://admin:1q2w3e4r@192.168.0.18/TANK/media.smp !
>  rtpmp4vdepay ! decodebin ! autovideosink
> 
> 2. I modified the sample code as followings but It doesn't work. The
> error was is 118,119 line number.
> [...]
> 118   if (gst_element_link_many (  demux, decoder,  sink,
> NULL)!=TRUE){

decodebin ("decoder") is adding source pads when the contained streams
are known. You have to connect to its "pad-added" signal and from there
get notified when pads (and which) are added, and continue linking from
there.

Check the manual chapter about dynamic pads for details.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170612/a759dbae/attachment.sig>


More information about the gstreamer-devel mailing list