Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
82129d7a
Commit
82129d7a
authored
Nov 29, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Fix qos.
parent
9ff6c7d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
qualitycontrol.c
dlls/strmbase/qualitycontrol.c
+6
-6
No files found.
dlls/strmbase/qualitycontrol.c
View file @
82129d7a
...
...
@@ -157,7 +157,7 @@ HRESULT QualityControlRender_WaitFor(QualityControlImpl *This, IMediaSample *sam
IReferenceClock_Unadvise(This->clock, cookie);
} else
#endif
if
(
jitter
<
0
)
{
if
(
jitter
<
-
1000
0
)
{
TRACE
(
"Sleeping for %i ms
\n
"
,
(
int
)
-
jitter
/
10000
);
WaitForSingleObject
(
ev
,
-
jitter
/
10000
);
}
...
...
@@ -183,7 +183,7 @@ void QualityControlRender_DoQOS(QualityControlImpl *priv)
REFERENCE_TIME
start
,
stop
,
jitter
,
pt
,
entered
,
left
,
duration
;
double
rate
;
if
(
!
priv
->
clock
)
if
(
!
priv
->
clock
||
priv
->
current_rstart
<
0
)
return
;
start
=
priv
->
current_rstart
;
...
...
@@ -275,10 +275,10 @@ void QualityControlRender_DoQOS(QualityControlImpl *priv)
priv
->
current_jitter
+=
(
priv
->
current_rstop
-
priv
->
current_rstart
);
q
.
Type
=
(
jitter
>
0
?
Famine
:
Flood
);
q
.
Proportion
=
(
LONG
)(
1000
.
/
priv
->
avg_rate
);
if
(
q
.
Proportion
<
5
00
)
q
.
Proportion
=
5
00
;
else
if
(
q
.
Proportion
>
2
000
)
q
.
Proportion
=
2
000
;
if
(
q
.
Proportion
<
2
00
)
q
.
Proportion
=
2
00
;
else
if
(
q
.
Proportion
>
5
000
)
q
.
Proportion
=
5
000
;
q
.
Late
=
priv
->
current_jitter
;
q
.
TimeStamp
=
priv
->
current_rstart
;
TRACE
(
"Late: %i from %i, rate: %g
\n
"
,
(
int
)(
q
.
Late
/
10000
),
(
int
)(
q
.
TimeStamp
/
10000
),
1
.
/
priv
->
avg_rate
);
...
...
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