Commit 18a2dc07 authored by Thomas Guillem's avatar Thomas Guillem

lib: fix libvlc_media_discoverer_localized_name

parent b33cc0bb
......@@ -133,7 +133,7 @@ libvlc_media_discoverer_release( libvlc_media_discoverer_t * p_mdis );
* Get media service discover object its localized name.
*
* \param p_mdis media discover object
* \return localized name
* \return localized name or NULL if the media_discoverer is not started
*/
LIBVLC_API char *
libvlc_media_discoverer_localized_name( libvlc_media_discoverer_t * p_mdis );
......
......@@ -199,6 +199,8 @@ static void services_discovery_Destructor ( vlc_object_t *p_obj )
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 ) );
}
......
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