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
0b1c15a3
Commit
0b1c15a3
authored
Aug 31, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another round of MTU fixes (review welcome)
parent
1600a925
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
modules/access_output/udp.c
modules/access_output/udp.c
+1
-1
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+4
-8
No files found.
modules/access_output/udp.c
View file @
0b1c15a3
...
...
@@ -375,7 +375,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_mtu
=
var_CreateGetInteger
(
p_this
,
"mtu"
);
if
(
p_sys
->
b_rtpts
&&
(
p_sys
->
i_mtu
<
RTP_HEADER_LENGTH
)
)
p_sys
->
i_mtu
+=
RTP_HEADER_LENGTH
;
p_sys
->
i_mtu
=
576
-
20
-
8
;
srand
(
(
uint32_t
)
mdate
());
p_sys
->
p_buffer
=
NULL
;
...
...
modules/stream_out/rtp.c
View file @
0b1c15a3
...
...
@@ -48,8 +48,6 @@
* Module descriptor
*****************************************************************************/
#define MTU_REDUCE 50
#define DST_TEXT N_("Destination")
#define DST_LONGTEXT N_( \
"This is the output URL that will be used." )
...
...
@@ -451,12 +449,11 @@ static int Open( vlc_object_t *p_this )
}
id
->
i_mtu
=
config_GetInt
(
p_stream
,
"mtu"
);
/* XXX beurk */
if
(
id
->
i_mtu
<=
1
6
+
MTU_REDUCE
)
if
(
id
->
i_mtu
<=
1
2
+
16
)
{
/* better than nothing */
id
->
i_mtu
=
576
-
20
-
8
;
}
id
->
i_mtu
-=
MTU_REDUCE
;
/* the access out grabber TODO export it as sout_AccessOutGrabberNew */
p_grab
=
p_sys
->
p_grab
=
...
...
@@ -1149,13 +1146,12 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
id
->
i_timestamp_start
=
rand
()
&
0xffffffff
;
id
->
i_bitrate
=
p_fmt
->
i_bitrate
/
1000
;
/* Stream bitrate in kbps */
id
->
i_mtu
=
config_GetInt
(
p_stream
,
"mtu"
);
/* XXX beuk */
if
(
id
->
i_mtu
<=
1
6
+
MTU_REDUCE
)
id
->
i_mtu
=
config_GetInt
(
p_stream
,
"mtu"
);
/* XXX beuk */
if
(
id
->
i_mtu
<=
1
2
+
16
)
{
/* better than nothing */
id
->
i_mtu
=
1500
;
id
->
i_mtu
=
576
-
20
-
8
;
}
id
->
i_mtu
-=
MTU_REDUCE
;
msg_Dbg
(
p_stream
,
"maximum RTP packet size: %d bytes"
,
id
->
i_mtu
);
if
(
p_sys
->
rtsp
!=
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