[vlc-commits] commit: Print error when setting TTL fails ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Sun Apr 11 21:42:22 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 11 22:42:11 2010 +0300| [62cc24a877ad0e898cd173fbc75956ef217b9488] | committer: Rémi Denis-Courmont
Print error when setting TTL fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=62cc24a877ad0e898cd173fbc75956ef217b9488
---
src/network/udp.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/network/udp.c b/src/network/udp.c
index ab1792e..3b2f545 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -244,9 +244,13 @@ static int net_SetMcastHopLimit( vlc_object_t *p_this,
/* BSD compatibility */
unsigned char buf;
+ msg_Dbg( p_this, "cannot set hop limit (%d): %m", hlim );
buf = (unsigned char)(( hlim > 255 ) ? 255 : hlim);
if( setsockopt( fd, proto, cmd, &buf, sizeof( buf ) ) )
+ {
+ msg_Err( p_this, "cannot set hop limit (%d): %m", hlim );
return VLC_EGENERIC;
+ }
}
return VLC_SUCCESS;
More information about the vlc-commits
mailing list