[vlc-devel] commit: Copy IPv4 multicast TTL from RTP to RTCP. ( Rémi Denis-Courmont )

xxcv xxcv07 at gmail.com
Wed Feb 25 10:54:25 CET 2009


git version control wrote:
> vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Feb 23 18:24:58 2009 +0200| [19c943dc3b2883d09f490e25c36e19ff8d814d37] | committer: Rémi Denis-Courmont 
>
> Copy IPv4 multicast TTL from RTP to RTCP.
>
> We were sending RTCP with TTL=1 all the time...
> (cherry picked from commit 7da51390659d29b3022c748b6e8491ad3e37f5e6)
>
>   
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19c943dc3b2883d09f490e25c36e19ff8d814d37
>>     
> ---
>
>  modules/stream_out/rtcp.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/modules/stream_out/rtcp.c b/modules/stream_out/rtcp.c
> index cbc3dad..3c1780e 100644
> --- a/modules/stream_out/rtcp.c
> +++ b/modules/stream_out/rtcp.c
> @@ -99,6 +99,16 @@ rtcp_sender_t *OpenRTCP (vlc_object_t *obj, int rtp_fd, int proto,
>          dport++;
>  
>          fd = net_OpenDgram (obj, src, sport, dst, dport, AF_UNSPEC, proto);
> +
> +        /* Copy the multicast IPv4 TTL value (useless for IPv6) */
> +        if (fd != -1)
> +        {
> +            int ttl;
> +            socklen_t len = sizeof (ttl);
> +
> +            if (!getsockopt (rtp_fd, SOL_IP, IP_MULTICAST_TTL, &ttl, &len))
> +                setsockopt (fd, SOL_IP, IP_MULTICAST_TTL, &ttl, len);
> +        }
>   
BTW this also apply to 1.0.0-git just because I didn't receive a branch 
master commit log, since you cherry picked it.
This fails to compile with mingw32.

Regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090225/e62b97aa/attachment.html>


More information about the vlc-devel mailing list