Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ff5e8812
Commit
ff5e8812
authored
May 20, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: use INT64_MIN as invalid delay value
Delay can be zero, VLC_TS_INVALID is a valid delay.
parent
40a9deba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/audio_output/packet.c
modules/audio_output/packet.c
+4
-3
No files found.
modules/audio_output/packet.c
View file @
ff5e8812
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
# include <config.h>
#endif
#endif
#include <limits.h>
#include <assert.h>
#include <assert.h>
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_aout.h>
#include <vlc_aout.h>
...
@@ -141,7 +142,7 @@ void aout_PacketInit (audio_output_t *aout, aout_packet_t *p, unsigned samples)
...
@@ -141,7 +142,7 @@ void aout_PacketInit (audio_output_t *aout, aout_packet_t *p, unsigned samples)
aout_FifoInit
(
&
p
->
partial
,
aout
->
format
.
i_rate
);
aout_FifoInit
(
&
p
->
partial
,
aout
->
format
.
i_rate
);
aout_FifoInit
(
&
p
->
fifo
,
aout
->
format
.
i_rate
);
aout_FifoInit
(
&
p
->
fifo
,
aout
->
format
.
i_rate
);
p
->
pause_date
=
VLC_TS_INVALID
;
p
->
pause_date
=
VLC_TS_INVALID
;
p
->
time_report
=
VLC_TS_INVALID
;
p
->
time_report
=
INT64_MIN
;
p
->
samples
=
samples
;
p
->
samples
=
samples
;
p
->
starving
=
true
;
p
->
starving
=
true
;
}
}
...
@@ -168,10 +169,10 @@ void aout_PacketPlay (audio_output_t *aout, block_t *block)
...
@@ -168,10 +169,10 @@ void aout_PacketPlay (audio_output_t *aout, block_t *block)
aout_FifoPush
(
&
p
->
fifo
,
block
);
aout_FifoPush
(
&
p
->
fifo
,
block
);
time_report
=
p
->
time_report
;
time_report
=
p
->
time_report
;
p
->
time_report
=
VLC_TS_INVALID
;
p
->
time_report
=
INT64_MIN
;
vlc_mutex_unlock
(
&
p
->
lock
);
vlc_mutex_unlock
(
&
p
->
lock
);
if
(
time_report
!=
VLC_TS_INVALID
)
if
(
time_report
!=
INT64_MIN
)
aout_TimeReport
(
aout
,
mdate
()
-
time_report
);
aout_TimeReport
(
aout
,
mdate
()
-
time_report
);
}
}
...
...
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