]> git.sesse.net Git - vlc/commitdiff
Print error when setting TTL fails
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 11 Apr 2010 19:42:11 +0000 (22:42 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 11 Apr 2010 19:42:11 +0000 (22:42 +0300)
src/network/udp.c

index ab1792e6de2a2587fd4b45cc3a2da4dd92050be0..3b2f5454670a1b5fb26bdfcfb3b9dde58341f702 100644 (file)
@@ -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;