Commit 6b5b319c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

SDP: send the standard "cat" attribute in addition to "x-plgroup"

parent aea7f120
...@@ -292,13 +292,14 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref, ...@@ -292,13 +292,14 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref,
if (sdp == NULL) if (sdp == NULL)
return NULL; return NULL;
/* Totally non-standard */ strcpy (subvar, "cat");
strcpy (subvar, "group"); char *cat = var_GetNonEmptyString (obj, varname);
char *group = var_GetNonEmptyString (obj, varname); if (cat != NULL)
if (group != NULL)
{ {
sdp_AddAttribute (&sdp, "x-plgroup", "%s", group); sdp_AddAttribute (&sdp, "cat", "%s", cat);
free (group); /* Totally non-standard */
sdp_AddAttribute (&sdp, "x-plgroup", "%s", cat);
free (cat);
} }
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