Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c15dfbb2
Commit
c15dfbb2
authored
Jan 21, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pts delay with non zero audio/spu delay.
Thanks linkfanel for noticing it.
parent
ceb26fc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/input/input.c
src/input/input.c
+4
-4
No files found.
src/input/input.c
View file @
c15dfbb2
...
...
@@ -1052,11 +1052,11 @@ static void UpdatePtsDelay( input_thread_t *p_input )
i_pts_delay
=
0
;
/* Take care of audio/spu delay */
const
in
t
i_audio_delay
=
var_GetTime
(
p_input
,
"audio-delay"
);
const
in
t
i_spu_delay
=
var_GetTime
(
p_input
,
"spu-delay"
);
const
in
t
i_extra_delay
=
__MIN
(
i_audio_delay
,
i_spu_delay
);
const
mtime_
t
i_audio_delay
=
var_GetTime
(
p_input
,
"audio-delay"
);
const
mtime_
t
i_spu_delay
=
var_GetTime
(
p_input
,
"spu-delay"
);
const
mtime_
t
i_extra_delay
=
__MIN
(
i_audio_delay
,
i_spu_delay
);
if
(
i_extra_delay
<
0
)
i_pts_delay
-=
i_extra_delay
*
INT64_C
(
1000
)
;
i_pts_delay
-=
i_extra_delay
;
/* Update cr_average depending on the caching */
const
int
i_cr_average
=
var_GetInteger
(
p_input
,
"cr-average"
)
*
i_pts_delay
/
DEFAULT_PTS_DELAY
;
...
...
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