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
1517bfb1
Commit
1517bfb1
authored
May 19, 2016
by
Andrew Eikum
Committed by
Alexandre Julliard
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Fix IQualityControl::Notify.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1def346b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
gstdemux.c
dlls/winegstreamer/gstdemux.c
+17
-4
No files found.
dlls/winegstreamer/gstdemux.c
View file @
1517bfb1
...
...
@@ -1663,15 +1663,28 @@ static ULONG WINAPI GST_QualityControl_Release(IQualityControl *iface)
static
HRESULT
WINAPI
GST_QualityControl_Notify
(
IQualityControl
*
iface
,
IBaseFilter
*
sender
,
Quality
qm
)
{
GSTOutPin
*
pin
=
impl_from_IQualityControl
(
iface
);
REFERENCE_TIME
late
=
qm
.
Late
;
GstEvent
*
evt
;
TRACE
(
"(%p)->(%p, { 0x%x %u %s %s })
\n
"
,
pin
,
sender
,
qm
.
Type
,
qm
.
Proportion
,
wine_dbgstr_longlong
(
qm
.
Late
),
wine_dbgstr_longlong
(
qm
.
TimeStamp
));
mark_wine_thread
();
if
(
qm
.
Late
<
0
&&
-
qm
.
Late
>
qm
.
TimeStamp
)
late
=
-
qm
.
TimeStamp
;
gst_pad_push_event
(
pin
->
my_sink
,
gst_event_new_qos
(
late
<=
0
?
GST_QOS_TYPE_OVERFLOW
:
GST_QOS_TYPE_UNDERFLOW
,
1000
.
/
qm
.
Proportion
,
late
*
100
,
qm
.
TimeStamp
*
100
));
if
(
qm
.
Type
==
Flood
)
qm
.
Late
=
0
;
evt
=
gst_event_new_qos
(
qm
.
Type
==
Famine
?
GST_QOS_TYPE_UNDERFLOW
:
GST_QOS_TYPE_OVERFLOW
,
qm
.
Proportion
/
1000
.,
qm
.
Late
*
100
,
qm
.
TimeStamp
*
100
);
if
(
!
evt
)
{
WARN
(
"Failed to create QOS event
\n
"
);
return
E_INVALIDARG
;
}
gst_pad_push_event
(
pin
->
my_sink
,
evt
);
return
S_OK
;
}
...
...
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