GNOME Bugzilla – Bug 710100
rtsp-stream: Add functions to get sockets from GstRTSPStream objects
Last modified: 2014-02-25 22:27:52 UTC
To get the actual GSockets from an GstRTSPStream one would have to iterate the pipeline of the GstRTSPMedia and get the sockets from some the sinks in that pipeline. Adding functions to get the rtp and rtcp sockets directly from the stream objects would make it easier.
Created attachment 257254 [details] [review] Add functions to get rtp and rtcp sockets from stream
Comment on attachment 257254 [details] [review] Add functions to get rtp and rtcp sockets from stream Note that this a) only works if the stream is over UDP and b) for IPv4. For IPv6 there's the socket-v6 property. I think this needs to be adapted a bit.
I forgot about IPv6. I don't think the stream sockets are of any interest when the stream is over TCP (it can be obtained from some other place then I think). I will add IPv6 and that would be enough I think.
Created attachment 257309 [details] [review] Add functions to get rtp and rtcp v4 and v6 sockets Added v6-functions.
Created attachment 257322 [details] [review] Add functions to get rtp and rtcp sockets Modified unittest to not require both IPv4 and IPv6 sockets.
Maybe this should be renamed get_rtp_udp_socket() or something like that?
Created attachment 257327 [details] [review] Add functions to get rtp and rtcp sockets Alternative implementation using family argument instead of v6-specific functions.
commit 8d5ce0d4ee6b99139de64372b5138ac6f8088611 Author: Wim Taymans <wim.taymans@gmail.com> Date: Tue Nov 12 12:04:55 2013 +0100 stream: Add functions to get rtp and rtcp sockets Fixes https://bugzilla.gnome.org/show_bug.cgi?id=710100