]> git.sesse.net Git - vlc/blobdiff - src/network/udp.c
Print error when setting TTL fails
[vlc] / 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;