From 62cc24a877ad0e898cd173fbc75956ef217b9488 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 11 Apr 2010 22:42:11 +0300 Subject: [PATCH] Print error when setting TTL fails --- src/network/udp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/network/udp.c b/src/network/udp.c index ab1792e6de..3b2f545467 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; -- 2.39.5