Commit 747a4464 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sd: remove services_discovery_GetLocalizedName()

parent 155a3443
...@@ -147,9 +147,6 @@ VLC_USED; ...@@ -147,9 +147,6 @@ VLC_USED;
VLC_API void vlc_sd_Destroy( services_discovery_t * ); VLC_API void vlc_sd_Destroy( services_discovery_t * );
/* Read info from discovery object */
VLC_API char * services_discovery_GetLocalizedName( services_discovery_t * p_this ) VLC_USED;
/** /**
* Added service callback. * Added service callback.
* *
......
...@@ -274,7 +274,9 @@ libvlc_media_discoverer_release( libvlc_media_discoverer_t * p_mdis ) ...@@ -274,7 +274,9 @@ libvlc_media_discoverer_release( libvlc_media_discoverer_t * p_mdis )
char * char *
libvlc_media_discoverer_localized_name( libvlc_media_discoverer_t * p_mdis ) libvlc_media_discoverer_localized_name( libvlc_media_discoverer_t * p_mdis )
{ {
return services_discovery_GetLocalizedName( p_mdis->p_sd ); if( p_mdis->p_sd == NULL || p_mdis->p_sd->description == NULL )
return NULL;
return strdup( p_mdis->p_sd->description );
} }
/************************************************************************** /**************************************************************************
......
...@@ -375,7 +375,6 @@ playlist_MuteGet ...@@ -375,7 +375,6 @@ playlist_MuteGet
sdp_AddAttribute sdp_AddAttribute
sdp_AddMedia sdp_AddMedia
secstotimestr secstotimestr
services_discovery_GetLocalizedName
sout_AccessOutControl sout_AccessOutControl
sout_AccessOutDelete sout_AccessOutDelete
sout_AccessOutNew sout_AccessOutNew
......
...@@ -138,19 +138,6 @@ void vlc_sd_Destroy(services_discovery_t *sd) ...@@ -138,19 +138,6 @@ void vlc_sd_Destroy(services_discovery_t *sd)
vlc_object_release(sd); vlc_object_release(sd);
} }
/*******************************************************************//**
* Get the Localized Name
*
* This is useful for interfaces and libVLC
***********************************************************************/
char *
services_discovery_GetLocalizedName ( services_discovery_t * p_sd )
{
if (p_sd->p_module == NULL)
return NULL;
return strdup( module_get_name( p_sd->p_module, true ) );
}
/* /*
* Playlist - Services discovery bridge * Playlist - Services discovery bridge
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment