Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
44c1b34b
Commit
44c1b34b
authored
Oct 25, 2005
by
Marian Durkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for SAP announcements:
* if --sout-rtp-ttl=0 use --ttl for c= line
parent
e9b9f8ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+10
-4
No files found.
modules/stream_out/rtp.c
View file @
44c1b34b
...
...
@@ -114,7 +114,7 @@ vlc_module_begin();
add_integer
(
SOUT_CFG_PREFIX
"port-video"
,
1232
,
NULL
,
PORT_VIDEO_TEXT
,
PORT_VIDEO_LONGTEXT
,
VLC_TRUE
);
add_integer
(
SOUT_CFG_PREFIX
"ttl"
,
1
,
NULL
,
TTL_TEXT
,
add_integer
(
SOUT_CFG_PREFIX
"ttl"
,
0
,
NULL
,
TTL_TEXT
,
TTL_LONGTEXT
,
VLC_TRUE
);
set_callbacks
(
Open
,
Close
);
...
...
@@ -495,7 +495,8 @@ static int Open( vlc_object_t *p_this )
RTP packets need to get the correct src IP address */
if
(
net_AddressIsMulticast
(
(
vlc_object_t
*
)
p_stream
,
p_sys
->
psz_destination
)
)
{
snprintf
(
psz_ttl
,
sizeof
(
psz_ttl
),
"/%d"
,
p_sys
->
i_ttl
);
snprintf
(
psz_ttl
,
sizeof
(
psz_ttl
),
"/%d"
,
p_sys
->
i_ttl
?
p_sys
->
i_ttl
:
config_GetInt
(
p_sout
,
"ttl"
)
);
psz_ttl
[
sizeof
(
psz_ttl
)
-
1
]
=
'\0'
;
}
else
...
...
@@ -737,6 +738,7 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
const
char
*
psz_destination
,
vlc_bool_t
b_rtsp
)
{
sout_stream_sys_t
*
p_sys
=
p_stream
->
p_sys
;
sout_instance_t
*
p_sout
=
p_stream
->
p_sout
;
int
i_size
;
char
*
psz_sdp
,
*
p
,
ipv
;
int
i
;
...
...
@@ -798,7 +800,8 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
if
(
net_AddressIsMulticast
(
(
vlc_object_t
*
)
p_stream
,
psz_destination
)
)
{
/* Add the ttl if it is a multicast address */
p
+=
sprintf
(
p
,
"/%d
\r\n
"
,
p_sys
->
i_ttl
);
p
+=
sprintf
(
p
,
"/%d
\r\n
"
,
p_sys
->
i_ttl
?
p_sys
->
i_ttl
:
config_GetInt
(
p_sout
,
"ttl"
)
);
}
else
{
...
...
@@ -1612,6 +1615,7 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
{
sout_stream_id_t
*
id
=
(
sout_stream_id_t
*
)
p_args
;
sout_stream_t
*
p_stream
=
id
->
p_stream
;
sout_instance_t
*
p_sout
=
p_stream
->
p_sout
;
sout_stream_sys_t
*
p_sys
=
p_stream
->
p_sys
;
char
*
psz_session
=
NULL
;
...
...
@@ -1648,7 +1652,9 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
}
httpd_MsgAdd
(
answer
,
"Transport"
,
"RTP/AVP/UDP;destination=%s;port=%d-%d;ttl=%d"
,
id
->
psz_destination
,
id
->
i_port
,
id
->
i_port
+
1
,
p_sys
->
i_ttl
);
id
->
psz_destination
,
id
->
i_port
,
id
->
i_port
+
1
,
p_sys
->
i_ttl
?
p_sys
->
i_ttl
:
config_GetInt
(
p_sout
,
"ttl"
)
);
}
else
if
(
strstr
(
psz_transport
,
"unicast"
)
&&
strstr
(
psz_transport
,
"client_port="
)
)
{
...
...
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