[vlc-devel] [PATCH] udp : allow 0 ttl value
sebastien-devel at celeos.eu
Fri Sep 19 15:52:54 CEST 2008
> Well... POSIX and IETF do specify -1 as the default value, but I suspect much
> of VLC uses 0 for that. This has the potential to break stuff.
My patch modifies net_ConnectDgram.
Each time this function is called, it is with a default value of -1, except one
It is called through "static inline int net_ConnectUDP" in vlc_network.h
I found five occurences of net_ConnectUDP, in whole vlc source code.
And 3 of them was a call with 0 value, so I replaced it with -1 in this new
It should be safe now, no ?
More information about the vlc-devel