From: RĂ©mi Denis-Courmont Date: Sun, 11 Apr 2010 19:42:11 +0000 (+0300) Subject: Print error when setting TTL fails X-Git-Tag: 1.1.0-pre1~29 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=62cc24a877ad0e898cd173fbc75956ef217b9488 Print error when setting TTL fails --- 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;