Commit caa08dce authored by Jakob Leben's avatar Jakob Leben

services_discovery: fix embedding translated longname into name

parent 3f26d384
...@@ -101,8 +101,11 @@ VLC_EXPORT(int, vlc_sd_probe_Add, (vlc_probe_t *, const char *, const char *)); ...@@ -101,8 +101,11 @@ VLC_EXPORT(int, vlc_sd_probe_Add, (vlc_probe_t *, const char *, const char *));
#define VLC_SD_PROBE_HELPER(name, longname) \ #define VLC_SD_PROBE_HELPER(name, longname) \
static int vlc_sd_probe_Open (vlc_object_t *obj) \ static int vlc_sd_probe_Open (vlc_object_t *obj) \
{ \ { \
char *psz_longname = longname; \
char psz_name[ strlen( psz_longname ) + 20 ]; \
sprintf( psz_name, name "{longname=\"%s\"}", psz_longname ); \
return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, \ return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, \
name "{longname=\"" # longname "\"}", longname); \ psz_name, longname); \
} }
/** @} */ /** @} */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment