Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3f9abe2c
Commit
3f9abe2c
authored
Dec 06, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Use advise functions in WaitFor.
parent
feb716b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
qualitycontrol.c
dlls/strmbase/qualitycontrol.c
+3
-10
No files found.
dlls/strmbase/qualitycontrol.c
View file @
3f9abe2c
...
...
@@ -148,18 +148,11 @@ HRESULT QualityControlRender_WaitFor(QualityControlImpl *This, IMediaSample *sam
now
-=
This
->
clockstart
;
jitter
=
now
-
start
;
#if 0
/* AdviseTime is bugged, so don't use it at all */
if (jitter < -200000) {
if
(
jitter
<=
-
10000
)
{
DWORD_PTR
cookie
;
IReferenceClock_AdviseTime(This->clock,
clockstart, start,
ev, &cookie);
IReferenceClock_AdviseTime
(
This
->
clock
,
This
->
clockstart
,
start
,
(
HEVENT
)
ev
,
&
cookie
);
WaitForSingleObject
(
ev
,
INFINITE
);
IReferenceClock_Unadvise(This->clock, cookie);
} else
#endif
if
(
jitter
<
-
10000
)
{
TRACE
(
"Sleeping for %i ms
\n
"
,
(
int
)
-
jitter
/
10000
);
WaitForSingleObject
(
ev
,
-
jitter
/
10000
);
IReferenceClock_Unadvise
(
This
->
clock
,
cookie
);
}
}
else
...
...
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