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
7bd81c85
Commit
7bd81c85
authored
Mar 31, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache mdate()
parent
17692713
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/audio_output/output.c
src/audio_output/output.c
+3
-2
No files found.
src/audio_output/output.c
View file @
7bd81c85
...
@@ -272,6 +272,7 @@ aout_buffer_t * aout_OutputNextBuffer( aout_instance_t * p_aout,
...
@@ -272,6 +272,7 @@ aout_buffer_t * aout_OutputNextBuffer( aout_instance_t * p_aout,
bool
b_can_sleek
)
bool
b_can_sleek
)
{
{
aout_buffer_t
*
p_buffer
;
aout_buffer_t
*
p_buffer
;
mtime_t
now
=
mdate
();
aout_lock_output_fifo
(
p_aout
);
aout_lock_output_fifo
(
p_aout
);
...
@@ -281,10 +282,10 @@ aout_buffer_t * aout_OutputNextBuffer( aout_instance_t * p_aout,
...
@@ -281,10 +282,10 @@ aout_buffer_t * aout_OutputNextBuffer( aout_instance_t * p_aout,
* In the case of b_can_sleek, we don't use a resampler so we need to be
* In the case of b_can_sleek, we don't use a resampler so we need to be
* a lot more severe. */
* a lot more severe. */
while
(
p_buffer
&&
p_buffer
->
i_pts
<
while
(
p_buffer
&&
p_buffer
->
i_pts
<
(
b_can_sleek
?
start_date
:
mdate
()
)
-
AOUT_PTS_TOLERANCE
)
(
b_can_sleek
?
start_date
:
now
)
-
AOUT_PTS_TOLERANCE
)
{
{
msg_Dbg
(
p_aout
,
"audio output is too slow (%"
PRId64
"), "
msg_Dbg
(
p_aout
,
"audio output is too slow (%"
PRId64
"), "
"trashing %"
PRId64
"us"
,
mdate
()
-
p_buffer
->
i_pts
,
"trashing %"
PRId64
"us"
,
now
-
p_buffer
->
i_pts
,
p_buffer
->
i_length
);
p_buffer
->
i_length
);
p_buffer
=
p_buffer
->
p_next
;
p_buffer
=
p_buffer
->
p_next
;
aout_BufferFree
(
p_aout
->
output
.
fifo
.
p_first
);
aout_BufferFree
(
p_aout
->
output
.
fifo
.
p_first
);
...
...
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