Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
2c475507
Commit
2c475507
authored
Apr 09, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not insert TTL in c= line for IPv6 - this was invalid
parent
ff79bc85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+6
-9
No files found.
modules/stream_out/rtp.c
View file @
2c475507
...
...
@@ -820,7 +820,7 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
p
+=
sprintf
(
p
,
"v=0
\r\n
"
);
p
+=
sprintf
(
p
,
"o=- "
I64Fd
" %d IN IP%c %s
\r\n
"
,
p_sys
->
i_sdp_id
,
p_sys
->
i_sdp_version
,
ipv
,
ipv
==
'6'
?
"::"
:
"127.0.0.1"
);
ipv
,
ipv
==
'6'
?
"::
1
"
:
"127.0.0.1"
);
if
(
*
p_sys
->
psz_session_name
)
p
+=
sprintf
(
p
,
"s=%s
\r\n
"
,
p_sys
->
psz_session_name
);
if
(
*
p_sys
->
psz_session_description
)
...
...
@@ -835,16 +835,13 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
p
+=
sprintf
(
p
,
"c=IN IP%c %s"
,
ipv
,
psz_destination
);
if
(
net_AddressIsMulticast
(
(
vlc_object_t
*
)
p_stream
,
psz_destination
)
)
if
(
(
ipv
==
4
)
&&
net_AddressIsMulticast
(
(
vlc_object_t
*
)
p_stream
,
psz_destination
)
)
{
/* Add the ttl if it is a multicast address */
/* FIXME: 1 is not a correct default value in the case of IPv6 */
p
+=
sprintf
(
p
,
"/%d
\r\n
"
,
p_sys
->
i_ttl
?
p_sys
->
i_ttl
:
1
);
/* Add the deprecated TTL field if it is an IPv4 multicast address */
p
+=
sprintf
(
p
,
"/%d"
,
p_sys
->
i_ttl
?:
1
);
}
else
{
p
+=
sprintf
(
p
,
"
\r\n
"
);
}
for
(
i
=
0
;
i
<
p_sys
->
i_es
;
i
++
)
{
...
...
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