[vlc-devel] [PATCH] sap: search x-plgroup also in media-level attrs
Santiago Gimeno
santiago.gimeno at gmail.com
Mon Nov 17 15:00:48 CET 2014
- This change has been taken from commit:
bbb30c6b30d0858e75dbaa38e6a776ca07fcda2a, as this functionality was removed in
commit aea7f120cac105e66b89443a2e50e3b68117732f.
---
modules/services_discovery/sap.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 5477924..d27f991 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -908,8 +908,13 @@ sap_announce_t *CreateAnnounce( services_discovery_t *p_sd, uint32_t *i_source,
else
{
/* backward compatibility with VLC 0.7.3-2.0.0 senders */
- psz_value = GetAttribute(p_sap->p_sdp->pp_attributes,
- p_sap->p_sdp->i_attributes, "x-plgroup");
+ if (p_sap->p_sdp->mediac >= 1) {
+ psz_value = FindAttribute(p_sap->p_sdp, 0, "x-plgroup");
+ } else {
+ psz_value = GetAttribute(p_sap->p_sdp->pp_attributes,
+ p_sap->p_sdp->i_attributes, "x-plgroup");
+ }
+
services_discovery_AddItem(p_sd, p_input, psz_value);
}
--
1.7.10.4
More information about the vlc-devel
mailing list