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
f5321226
Commit
f5321226
authored
Jul 03, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Invoke the clock once rather than 2/3 times...
parent
05ecd69a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/access_output/udp.c
modules/access_output/udp.c
+4
-4
No files found.
modules/access_output/udp.c
View file @
f5321226
...
...
@@ -460,6 +460,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
{
block_t
*
p_next
;
int
i_packets
=
0
;
mtime_t
now
=
mdate
();
if
(
!
p_sys
->
b_mtu_warning
&&
p_buffer
->
i_buffer
>
p_sys
->
i_mtu
)
{
...
...
@@ -472,10 +473,10 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
if
(
p_sys
->
p_buffer
&&
p_sys
->
p_buffer
->
i_buffer
+
p_buffer
->
i_buffer
>
p_sys
->
i_mtu
)
{
if
(
p_sys
->
p_buffer
->
i_dts
+
p_sys
->
p_thread
->
i_caching
<
mdate
()
)
if
(
p_sys
->
p_buffer
->
i_dts
+
p_sys
->
p_thread
->
i_caching
<
now
)
{
msg_Dbg
(
p_access
,
"late packet for UDP input ("
I64Fd
")"
,
mdate
()
-
p_sys
->
p_buffer
->
i_dts
now
-
p_sys
->
p_buffer
->
i_dts
-
p_sys
->
p_thread
->
i_caching
);
}
block_FifoPut
(
p_sys
->
p_thread
->
p_fifo
,
p_sys
->
p_buffer
);
...
...
@@ -515,8 +516,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
if
(
p_sys
->
p_buffer
->
i_buffer
==
p_sys
->
i_mtu
||
i_packets
>
1
)
{
/* Flush */
if
(
p_sys
->
p_buffer
->
i_dts
+
p_sys
->
p_thread
->
i_caching
<
mdate
()
)
if
(
p_sys
->
p_buffer
->
i_dts
+
p_sys
->
p_thread
->
i_caching
<
now
)
{
msg_Dbg
(
p_access
,
"late packet for udp input ("
I64Fd
")"
,
mdate
()
-
p_sys
->
p_buffer
->
i_dts
...
...
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