]> git.sesse.net Git - vlc/commitdiff
Automatically pass the long name in the SD probe helper
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Feb 2010 15:04:55 +0000 (17:04 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Feb 2010 15:08:27 +0000 (17:08 +0200)
include/vlc_services_discovery.h
modules/services_discovery/podcast.c

index b0355739f2a429f6b6e71becbaf2bd00cdc31c40..06026c7bc2c29abadf2fd33ac9e72719956296bc 100644 (file)
@@ -101,7 +101,8 @@ VLC_EXPORT(int, vlc_sd_probe_Add, (vlc_probe_t *, const char *, const char *));
 #define VLC_SD_PROBE_HELPER(name, longname) \
 static int vlc_sd_probe_Open (vlc_object_t *obj) \
 { \
-    return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, name, longname); \
+    return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, \
+                             name "{longname=\"" # longname "\"}", longname); \
 }
 
 /** @} */
index 7bc87ef3c05023f3a8d60c90e140717554f30cbb..07afe5bc2ca0bdca4cf170f6c3b87d57af64872c 100644 (file)
@@ -53,7 +53,7 @@
 static int  Open ( vlc_object_t * );
 static void Close( vlc_object_t * );
 
-VLC_SD_PROBE_HELPER("podcast{longname=Podcasts}", N_("Podcasts"))
+VLC_SD_PROBE_HELPER("podcast", N_("Podcasts"))
 
 #define URLS_TEXT N_("Podcast URLs list")
 #define URLS_LONGTEXT N_("Enter the list of podcasts to retrieve, " \