SD probe: always provide a long name
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Feb 2010 15:15:18 +0000 (17:15 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 6 Feb 2010 15:15:18 +0000 (17:15 +0200)
modules/services_discovery/mediadirs.c
modules/services_discovery/shout.c
modules/services_discovery/udev.c
modules/services_discovery/xcb_apps.c

index d948f78..897d894 100644 (file)
@@ -355,7 +355,11 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
 {
     vlc_probe_t *probe = (vlc_probe_t *)obj;
 
-    vlc_sd_probe_Add( probe, "video_dir", N_("My Videos") );
-    vlc_sd_probe_Add( probe, "audio_dir", N_("My Music") );
-    return vlc_sd_probe_Add( probe, "picture_dir", N_("My Pictures") );
+    vlc_sd_probe_Add( probe, "video_dir{longname=\"My Videos\"}",
+                      N_("My Videos") );
+    vlc_sd_probe_Add( probe, "audio_dir{longname=\"My Music\"}",
+                      N_("My Music") );
+    vlc_sd_probe_Add( probe, "picture_dir{longname=\"My Pictures\"}",
+                      N_("My Pictures") );
+    return VLC_PROBE_CONTINUE;
 }
index b8f40f1..276e9b2 100644 (file)
@@ -282,8 +282,11 @@ 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") );
+    vlc_sd_probe_Add( probe, "shoutcast{longname=\"Shoutcast Radio\"}",
+                      N_("Shoutcast Radio") );
+    vlc_sd_probe_Add( probe, "shoutcasttv{longname=\"Shoutcast TV\"}",
+                      N_("Shoutcast TV") );
+    vlc_sd_probe_Add( probe, "frenchtv{longname=\"French TV\"}",
+                      N_("French TV") );
     return VLC_PROBE_CONTINUE;
 }
index 631b679..8ed89c3 100644 (file)
@@ -73,8 +73,9 @@ static int vlc_sd_probe_Open (vlc_object_t *obj)
     struct udev_monitor *mon = udev_monitor_new_from_netlink (udev, "udev");
     if (mon != NULL)
     {
-        vlc_sd_probe_Add (probe, "v4l", N_("Capture devices"));
-        vlc_sd_probe_Add (probe, "disc", N_("Discs"));
+        vlc_sd_probe_Add (probe, "v4l{longname=\"Video capture\"}",
+                          N_("Video capture"));
+        vlc_sd_probe_Add (probe, "disc{longname=\"Discs\"}", N_("Discs"));
         udev_monitor_unref (mon);
     }
     udev_unref (udev);
index ba9d4ad..19ba85a 100644 (file)
@@ -79,7 +79,8 @@ static int vlc_sd_probe_Open (vlc_object_t *obj)
     if (xcb_connection_has_error (conn))
         return VLC_PROBE_CONTINUE;
     xcb_disconnect (conn);
-    return vlc_sd_probe_Add (probe, "xcb_apps", N_("Screen capture"));
+    return vlc_sd_probe_Add (probe, "xcb_apps{longname=\"Screen capture\"}",
+                             N_("Screen capture"));
 }
 
 /**