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
4c224eab
Commit
4c224eab
authored
Jul 18, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Don't cast IQualityControl to the COM object.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fee64bed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
qualitycontrol.c
dlls/strmbase/qualitycontrol.c
+10
-5
No files found.
dlls/strmbase/qualitycontrol.c
View file @
4c224eab
...
...
@@ -61,28 +61,33 @@ void QualityControlImpl_Destroy(QualityControlImpl *This)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
static
inline
QualityControlImpl
*
impl_from_IQualityControl
(
IQualityControl
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
QualityControlImpl
,
IQualityControl_iface
);
}
HRESULT
WINAPI
QualityControlImpl_QueryInterface
(
IQualityControl
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
QualityControlImpl
*
This
=
impl_from_IQualityControl
(
iface
)
;
return
IBaseFilter_QueryInterface
(
This
->
self
,
riid
,
ppv
);
}
ULONG
WINAPI
QualityControlImpl_AddRef
(
IQualityControl
*
iface
)
{
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
QualityControlImpl
*
This
=
impl_from_IQualityControl
(
iface
)
;
return
IBaseFilter_AddRef
(
This
->
self
);
}
ULONG
WINAPI
QualityControlImpl_Release
(
IQualityControl
*
iface
)
{
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
QualityControlImpl
*
This
=
impl_from_IQualityControl
(
iface
)
;
return
IBaseFilter_Release
(
This
->
self
);
}
HRESULT
WINAPI
QualityControlImpl_Notify
(
IQualityControl
*
iface
,
IBaseFilter
*
sender
,
Quality
qm
)
{
QualityControlImpl
*
This
=
impl_from_IQualityControl
(
iface
);
HRESULT
hr
=
S_FALSE
;
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
TRACE
(
"%p %p { 0x%x %u "
XTIME_FMT
" "
XTIME_FMT
" }
\n
"
,
This
,
sender
,
qm
.
Type
,
qm
.
Proportion
,
...
...
@@ -110,7 +115,7 @@ HRESULT WINAPI QualityControlImpl_Notify(IQualityControl *iface, IBaseFilter *se
HRESULT
WINAPI
QualityControlImpl_SetSink
(
IQualityControl
*
iface
,
IQualityControl
*
tonotify
)
{
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
QualityControlImpl
*
This
=
impl_from_IQualityControl
(
iface
)
;
TRACE
(
"%p %p
\n
"
,
This
,
tonotify
);
This
->
tonotify
=
tonotify
;
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