]> git.sesse.net Git - vlc/commitdiff
macosx/framework: shoutcast is gone.
authorPierre d'Herbemont <pdherbemont@free.fr>
Mon, 15 Feb 2010 15:54:52 +0000 (16:54 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Mon, 15 Feb 2010 15:54:52 +0000 (16:54 +0100)
projects/macosx/framework/Sources/VLCMediaDiscoverer.m

index 74d76e12ffbdea43f469ae3f9226a0ea9e758364..02b9ce9a204d385a3fe54d37000398c5ab3c56c7 100644 (file)
@@ -78,9 +78,7 @@ static void HandleMediaDiscovererEnded( const libvlc_event_t * event, void * use
                                 [[[VLCMediaDiscoverer alloc] initWithName:@"sap"] autorelease],
                                 [[[VLCMediaDiscoverer alloc] initWithName:@"upnp_intel"] autorelease],
                                 [[[VLCMediaDiscoverer alloc] initWithName:@"freebox"] autorelease],
-                                [[[VLCMediaDiscoverer alloc] initWithName:@"video_dir"] autorelease],
-                                [[[VLCMediaDiscoverer alloc] initWithName:@"shoutcast"] autorelease],
-                                [[[VLCMediaDiscoverer alloc] initWithName:@"shoutcasttv"] autorelease], nil] retain];
+                                [[[VLCMediaDiscoverer alloc] initWithName:@"video_dir"] autorelease], nil] retain];
     }
     return availableMediaDiscoverer;
 }
@@ -93,7 +91,7 @@ static void HandleMediaDiscovererEnded( const libvlc_event_t * event, void * use
         discoveredMedia = nil;
         mdis = libvlc_media_discoverer_new_from_name([VLCLibrary sharedInstance],
                                                      [aServiceName UTF8String]);
-
+        NSAssert(mdis, @"No such media discoverer");
         libvlc_event_manager_t * p_em = libvlc_media_discoverer_event_manager(mdis);
         libvlc_event_attach(p_em, libvlc_MediaDiscovererStarted, HandleMediaDiscovererStarted, self);
         libvlc_event_attach(p_em, libvlc_MediaDiscovererEnded,   HandleMediaDiscovererEnded,   self);