Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
bbb30c6b
Commit
bbb30c6b
authored
Feb 20, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look for x-plgroup also among media-level attributes
parent
21f58438
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+6
-3
No files found.
modules/services_discovery/sap.c
View file @
bbb30c6b
...
@@ -277,6 +277,8 @@ struct demux_sys_t
...
@@ -277,6 +277,8 @@ struct demux_sys_t
static
inline
attribute_t
*
MakeAttribute
(
const
char
*
str
);
static
inline
attribute_t
*
MakeAttribute
(
const
char
*
str
);
static
const
char
*
GetAttribute
(
attribute_t
**
tab
,
unsigned
n
,
const
char
*
name
);
static
const
char
*
GetAttribute
(
attribute_t
**
tab
,
unsigned
n
,
const
char
*
name
);
static
inline
void
FreeAttribute
(
attribute_t
*
a
);
static
inline
void
FreeAttribute
(
attribute_t
*
a
);
static
const
char
*
FindAttribute
(
const
sdp_t
*
sdp
,
unsigned
media
,
const
char
*
name
);
static
vlc_bool_t
IsSameSession
(
sdp_t
*
p_sdp1
,
sdp_t
*
p_sdp2
);
static
vlc_bool_t
IsSameSession
(
sdp_t
*
p_sdp1
,
sdp_t
*
p_sdp2
);
static
int
InitSocket
(
services_discovery_t
*
p_sd
,
const
char
*
psz_address
,
int
i_port
);
static
int
InitSocket
(
services_discovery_t
*
p_sd
,
const
char
*
psz_address
,
int
i_port
);
...
@@ -792,9 +794,10 @@ sap_announce_t *CreateAnnounce( services_discovery_t *p_sd, uint16_t i_hash,
...
@@ -792,9 +794,10 @@ sap_announce_t *CreateAnnounce( services_discovery_t *p_sd, uint16_t i_hash,
}
}
/* Handle group */
/* Handle group */
psz_value
=
GetAttribute
(
p_sap
->
p_sdp
->
pp_attributes
,
p_sap
->
p_sdp
->
i_attributes
,
"x-plgroup"
);
if
(
p_sap
->
p_sdp
->
mediac
>=
1
)
if
(
psz_value
==
NULL
)
psz_value
=
FindAttribute
(
p_sap
->
p_sdp
,
0
,
"x-plgroup"
);
psz_value
=
GetAttribute
(
p_sap
->
p_sdp
->
pp_attributes
,
p_sap
->
p_sdp
->
i_attributes
,
"plgroup"
);
else
psz_value
=
GetAttribute
(
p_sap
->
p_sdp
->
pp_attributes
,
p_sap
->
p_sdp
->
i_attributes
,
"x-plgroup"
);
if
(
psz_value
!=
NULL
)
if
(
psz_value
!=
NULL
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment