p_mdis = malloc(sizeof(libvlc_media_discoverer_t));
if( !p_mdis )
{
- libvlc_exception_raise( p_e, "Not enough memory" );
+ libvlc_exception_raise( p_e );
+ libvlc_printerr( "Not enough memory" );
return NULL;
}
if( !p_mdis->p_sd )
{
libvlc_media_list_release( p_mdis->p_mlist );
- libvlc_exception_raise( p_e, "Can't find the services_discovery module named '%s'", psz_name );
+ libvlc_exception_raise( p_e );
+ libvlc_printerr( "%s: no such discovery module found", psz_name );
free( p_mdis );
return NULL;
}
if( !vlc_sd_Start( p_mdis->p_sd, psz_name ) )
{
libvlc_media_list_release( p_mdis->p_mlist );
- libvlc_exception_raise( p_e, "Can't start the services_discovery module named '%s'", psz_name );
+ libvlc_exception_raise( p_e );
+ libvlc_printerr( "%s: internal module error", psz_name );
free( p_mdis );
return NULL;
}