[vlc-commits] SDP: send the standard "cat" attribute in addition to "x-plgroup"
Rémi Denis-Courmont
git at videolan.org
Wed Mar 14 16:28:35 CET 2012
vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Mar 14 16:33:31 2012 +0200| [dab282c1ba00c3b7c0efe66f61c8eca84aa441c1] | committer: Rémi Denis-Courmont
SDP: send the standard "cat" attribute in addition to "x-plgroup"
(cherry picked from commit 6b5b319c452a328f93f6466eb9b934eb1513d266)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=dab282c1ba00c3b7c0efe66f61c8eca84aa441c1
---
src/stream_output/sdp.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/stream_output/sdp.c b/src/stream_output/sdp.c
index 2363d34..37c55b0 100644
--- a/src/stream_output/sdp.c
+++ b/src/stream_output/sdp.c
@@ -292,13 +292,14 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref,
if (sdp == NULL)
return NULL;
- /* Totally non-standard */
- strcpy (subvar, "group");
- char *group = var_GetNonEmptyString (obj, varname);
- if (group != NULL)
+ strcpy (subvar, "cat");
+ char *cat = var_GetNonEmptyString (obj, varname);
+ if (cat != NULL)
{
- sdp_AddAttribute (&sdp, "x-plgroup", "%s", group);
- free (group);
+ sdp_AddAttribute (&sdp, "cat", "%s", cat);
+ /* Totally non-standard */
+ sdp_AddAttribute (&sdp, "x-plgroup", "%s", cat);
+ free (cat);
}
return sdp;
More information about the vlc-commits
mailing list