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
ca8b7cf3
Commit
ca8b7cf3
authored
May 29, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/filesource: Use BaseFilterImpl_QueryInterface().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4b839bdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
35 deletions
+16
-35
filesource.c
dlls/quartz/filesource.c
+16
-35
No files found.
dlls/quartz/filesource.c
View file @
ca8b7cf3
...
...
@@ -425,10 +425,25 @@ static void async_reader_destroy(BaseFilter *iface)
CoTaskMemFree
(
filter
);
}
static
HRESULT
async_reader_query_interface
(
BaseFilter
*
iface
,
REFIID
iid
,
void
**
out
)
{
AsyncReader
*
filter
=
impl_from_BaseFilter
(
iface
);
if
(
IsEqualGUID
(
iid
,
&
IID_IFileSourceFilter
))
{
*
out
=
&
filter
->
IFileSourceFilter_iface
;
IUnknown_AddRef
((
IUnknown
*
)
*
out
);
return
S_OK
;
}
return
E_NOINTERFACE
;
}
static
const
BaseFilterFuncTable
BaseFuncTable
=
{
.
filter_get_pin
=
async_reader_get_pin
,
.
filter_destroy
=
async_reader_destroy
,
.
filter_query_interface
=
async_reader_query_interface
,
};
HRESULT
AsyncReader_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
)
...
...
@@ -458,40 +473,6 @@ HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv)
return
S_OK
;
}
/** IUnknown methods **/
static
HRESULT
WINAPI
AsyncReader_QueryInterface
(
IBaseFilter
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
AsyncReader
*
This
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"%p->(%s, %p)
\n
"
,
This
,
qzdebugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
*
ppv
=
&
This
->
filter
.
IBaseFilter_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersist
))
*
ppv
=
&
This
->
filter
.
IBaseFilter_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaFilter
))
*
ppv
=
&
This
->
filter
.
IBaseFilter_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IBaseFilter
))
*
ppv
=
&
This
->
filter
.
IBaseFilter_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IFileSourceFilter
))
*
ppv
=
&
This
->
IFileSourceFilter_iface
;
if
(
*
ppv
)
{
IUnknown_AddRef
((
IUnknown
*
)(
*
ppv
));
return
S_OK
;
}
if
(
!
IsEqualIID
(
riid
,
&
IID_IPin
)
&&
!
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
)
&&
!
IsEqualIID
(
riid
,
&
IID_IVideoWindow
)
&&
!
IsEqualIID
(
riid
,
&
IID_IBasicAudio
))
FIXME
(
"No interface for %s!
\n
"
,
qzdebugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
/** IMediaFilter methods **/
static
HRESULT
WINAPI
AsyncReader_Stop
(
IBaseFilter
*
iface
)
...
...
@@ -529,7 +510,7 @@ static HRESULT WINAPI AsyncReader_Run(IBaseFilter * iface, REFERENCE_TIME tStart
static
const
IBaseFilterVtbl
AsyncReader_Vtbl
=
{
AsyncReader
_QueryInterface
,
BaseFilterImpl
_QueryInterface
,
BaseFilterImpl_AddRef
,
BaseFilterImpl_Release
,
BaseFilterImpl_GetClassID
,
...
...
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