]> git.sesse.net Git - vlc/commitdiff
media_discoverer.c: Raise an exception on error.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 31 Aug 2007 07:18:41 +0000 (07:18 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 31 Aug 2007 07:18:41 +0000 (07:18 +0000)
src/control/media_discoverer.c

index f2f735bb2bda61793a913372298b9dc15335c70c..5d8450b4f7aa5944d80a0ad2ae0f34e273d59bd7 100644 (file)
@@ -90,6 +90,7 @@ libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst,
     if( !p_mdis->p_sd )
     {
         free( p_mdis );
+        libvlc_exception_raise( p_e, "Can't find the services_discovery module named '%s'", psz_name );
         return NULL;
     }