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
e8003df9
Commit
e8003df9
authored
Jul 29, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Similar fixes
RTSP server supports IPv6 (refs #270)
parent
d935e0c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+12
-7
No files found.
modules/stream_out/rtp.c
View file @
e8003df9
...
...
@@ -911,19 +911,24 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
if
(
p_sys
->
psz_destination
)
{
char
access
[
1
00
];
char
url
[
strlen
(
p_sys
->
psz_destination
)
+
1
+
12
+
1
];
char
access
[
1
7
];
char
url
[
NI_MAXHOST
+
7
];
/* first try to create the access out */
if
(
p_sys
->
i_ttl
>
0
)
{
sprintf
(
access
,
"udp{raw,ttl=%d}"
,
p_sys
->
i_ttl
);
snprintf
(
access
,
sizeof
(
access
),
"udp{raw,ttl=%d}"
,
p_sys
->
i_ttl
);
access
[
sizeof
(
access
)
-
1
]
=
'\0'
;
}
else
{
sprintf
(
access
,
"udp{raw}"
);
}
sprintf
(
url
,
"%s:%d"
,
p_sys
->
psz_destination
,
i_port
);
strcpy
(
access
,
"udp{raw}"
);
snprintf
(
url
,
sizeof
(
url
),
strchr
(
p_sys
->
psz_destination
,
':'
)
?
"[%s]:%d"
:
"%s:%d"
,
p_sys
->
psz_destination
,
i_port
);
url
[
sizeof
(
url
)
-
1
]
=
'\0'
;
if
(
(
p_access
=
sout_AccessOutNew
(
p_sout
,
access
,
url
)
)
==
NULL
)
{
msg_Err
(
p_stream
,
"cannot create the access out for %s://%s"
,
...
...
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