I am using a pipeline with an rtsp src in C code. Everything has been working mostly wonderfully, but recent issues have led me to believe that I am doing something wrong in certain situations. Specifically, I am wondering if I am handling the pad-added signal correctly. My pad-added handler is something simple like (simplified for the sake of readability):
Thank you! - Bill _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le lun. 4 nov. 2019 15 h 10, Bill Klein <[hidden email]> a écrit :
Means the link failed. There was not matching formats on these pads. You are doing something incorrect. Trace the caps on both ends to debug.
You are trying to link twice a pad, this is a programming error. If you need to relink, the make sure to unlink first.
Most cameras will expose two streams, audio and video. This seems rather strange to see so many pads, would need more data.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Nicolas, > > Sometimes gst_pad_link returns GST_PAD_LINK_NOFORMAT. Is that expected/normal? Do I need to perform additional handling in that case (ex unrefing the element)? > Means the link failed. There was not matching formats on these pads. You are doing something incorrect. Trace the caps on both ends to debug. >> Sometimes gst_pad_link returns GST_PAD_LINK_WAS_LINKED. Is that expected/normal? Do I need to perform additional handling in that case (ex unrefing the element)? > You are trying to link twice a pad, this is a programming error. If you need to relink, the make sure to unlink first. Keep in mind that this is just an rtspsrc pipeline where I am listening on the pad-added signal to handle the dynamic linking... If I tried to link to the same pad twice, it was only because the pad-added signal was called twice using the same pad (I've confirmed that this is in fact the case). Wouldn't that indicate a but in rtspsrc (or, more likely, rtp manager and its friends)? Or is there something I'm not understanding? Appreciate the response. I will trace the caps as you suggest, but I'm unsure what I could be doing differently here, as my example is pretty simple... - Bill On Mon, Nov 4, 2019 at 10:24 AM Nicolas Dufresne <[hidden email]> wrote:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |