* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <assert.h>
#include <vlc/libvlc.h>
{
libvlc_media_t * p_catmd;
p_catmd = libvlc_media_new_as_node( p_mdis->p_libvlc_instance, psz_cat, NULL );
- p_mlist = libvlc_media_subitems( p_catmd, NULL );
+ p_mlist = libvlc_media_subitems( p_catmd );
p_mlist->b_read_only = true;
/* Insert the newly created mlist in our dictionary */
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;
}