diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c index 6a0260ecac16bda7553f54583de772e89023ce22..0fdaf9948db9beb2e88d005f35d203ac01f1a8d6 100644 --- a/modules/services_discovery/sap.c +++ b/modules/services_discovery/sap.c @@ -248,7 +248,7 @@ static int RemoveAnnounce( services_discovery_t *p_sd, static int InitSocket( services_discovery_t *p_sd, const char *psz_address, int i_port ) { - int i_fd = net_ListenUDP1 ((vlc_object_t *)p_sd, psz_address, i_port); + int i_fd = net_ListenUDP1 (VLC_OBJECT(p_sd), psz_address, i_port); if (i_fd == -1) return VLC_EGENERIC;