psz_uri is NEEDED - it determines the destination for SAP announces
Go read the code before you commit
vlc_mutex_lock( &p_sap->object_lock );
- if( p_session->psz_uri == NULL && p_session->psz_sdp == NULL )
+ if( p_session->psz_uri == NULL )
{
vlc_mutex_unlock( &p_sap->object_lock );
- msg_Err( p_sap, "Trying to create a NULL SAP announce" );
+ msg_Err( p_sap, "*FIXME* Unexpected NULL URI for SAP announce" );
+ msg_Err( p_sap, "This should not happen. VLC needs fixing." );
return VLC_EGENERIC;
}
((struct sockaddr_in *)&addr)->sin_addr.s_addr = htonl( ipv4 );
break;
}
-
+
default:
vlc_mutex_unlock( &p_sap->object_lock );
vlc_freeaddrinfo( res );