Commit 9f048445 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

VLC-specific playlist group support

parent bc650c59
...@@ -271,10 +271,6 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref, ...@@ -271,10 +271,6 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref,
char *email = var_GetNonEmptyString (obj, varname); char *email = var_GetNonEmptyString (obj, varname);
strcpy (subvar, "phone"); strcpy (subvar, "phone");
char *phone = var_GetNonEmptyString (obj, varname); char *phone = var_GetNonEmptyString (obj, varname);
#if 0
strcpy (subvar, "group");
char *group = var_GetNonEmptyString (obj, varname);
#endif
char *sdp = sdp_Start (name, description, url, email, phone, char *sdp = sdp_Start (name, description, url, email, phone,
src, srclen, addr, addrlen); src, srclen, addr, addrlen);
...@@ -284,5 +280,17 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref, ...@@ -284,5 +280,17 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref,
free (email); free (email);
free (phone); free (phone);
if (sdp == NULL)
return NULL;
/* Totally non-standard */
strcpy (subvar, "group");
char *group = var_GetNonEmptyString (obj, varname);
if (group != NULL)
{
sdp_AddAttribute (&sdp, "x-plgroup", "%s", group)
free (group);
}
return sdp; return sdp;
} }
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