Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
167c59f6
Commit
167c59f6
authored
Jan 23, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtp sout: support IPv6 in SDP for RTSP
parent
47109b0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+9
-4
No files found.
modules/stream_out/rtp.c
View file @
167c59f6
...
...
@@ -763,13 +763,18 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url )
{
inclport
=
0
;
/* Check against URL format rtsp://[<ipv6>]:<port>/<path> */
bool
ipv6
=
rtsp_url
!=
NULL
&&
strlen
(
rtsp_url
)
>
7
&&
rtsp_url
[
7
]
==
'['
;
/* Dummy destination address for RTSP */
memset
(
&
dst
,
0
,
sizeof
(
struct
sockaddr_in
)
);
dst
.
ss_family
=
AF_INET
;
dstlen
=
ipv6
?
sizeof
(
struct
sockaddr_in6
)
:
sizeof
(
struct
sockaddr_in
);
memset
(
&
dst
,
0
,
dstlen
);
dst
.
ss_family
=
ipv6
?
AF_INET6
:
AF_INET
;
#ifdef HAVE_SA_LEN
dst
.
ss_len
=
dst
.
ss_len
=
dstlen
;
#endif
dstlen
=
sizeof
(
struct
sockaddr_in
);
}
psz_sdp
=
vlc_sdp_Start
(
VLC_OBJECT
(
p_stream
),
SOUT_CFG_PREFIX
,
...
...
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