[vlc-devel] commit: shoutcast: dummy probe support for Internet entries ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Dec 22 10:50:14 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 22 11:49:47 2009 +0200| [749065d0ab89df414fbb501c6370b7ca71a9f878] | committer: Rémi Denis-Courmont 

shoutcast: dummy probe support for Internet entries

TODO: Freebox

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=749065d0ab89df414fbb501c6370b7ca71a9f878
---

 modules/services_discovery/shout.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/modules/services_discovery/shout.c b/modules/services_discovery/shout.c
index 859f9f8..b8f40f1 100644
--- a/modules/services_discovery/shout.c
+++ b/modules/services_discovery/shout.c
@@ -103,6 +103,8 @@ OPEN( FrenchTV )
 
 #undef OPEN
 
+static int vlc_sd_probe_Open( vlc_object_t * );
+
 vlc_module_begin ()
     set_category( CAT_PLAYLIST )
     set_subcategory( SUBCAT_PLAYLIST_SD )
@@ -136,6 +138,7 @@ vlc_module_begin ()
         set_callbacks( OpenFreebox, Close )
         add_shortcut( "freebox" )
 
+    VLC_SD_PROBE_SUBMODULE
 vlc_module_end ()
 
 
@@ -274,3 +277,13 @@ static void Close( vlc_object_t *p_this )
     vlc_join (p_sys->thread, NULL);
     free (p_sys);
 }
+
+static int vlc_sd_probe_Open( vlc_object_t *obj )
+{
+    vlc_probe_t *probe = (vlc_probe_t *)obj;
+
+    vlc_sd_probe_Add( probe, "shoutcast", N_("Shoutcast Radio") );
+    vlc_sd_probe_Add( probe, "shoutcasttv", N_("Shoutcast TV") );
+    vlc_sd_probe_Add( probe, "frenchtv", N_("French TV") );
+    return VLC_PROBE_CONTINUE;
+}




More information about the vlc-devel mailing list