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
d6a44a91
Commit
d6a44a91
authored
Jun 04, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/avico: Use BaseFilterImpl_QueryInterface().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6c7e3ac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
31 deletions
+15
-31
avico.c
dlls/qcap/avico.c
+15
-31
No files found.
dlls/qcap/avico.c
View file @
d6a44a91
...
...
@@ -117,36 +117,6 @@ static HRESULT fill_format_info(AVICompressor *This, VIDEOINFOHEADER *src_videoi
return
S_OK
;
}
static
HRESULT
WINAPI
AVICompressor_QueryInterface
(
IBaseFilter
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
AVICompressor
*
This
=
impl_from_IBaseFilter
(
iface
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
filter
.
IBaseFilter_iface
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersist
))
{
TRACE
(
"(%p)->(IID_IPersist %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
filter
.
IBaseFilter_iface
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaFilter
))
{
TRACE
(
"(%p)->(IID_IMediaFilter %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
filter
.
IBaseFilter_iface
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IBaseFilter
))
{
TRACE
(
"(%p)->(IID_IBaseFilter %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
filter
.
IBaseFilter_iface
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistPropertyBag
))
{
TRACE
(
"(%p)->(IID_IPersistPropertyBag %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IPersistPropertyBag_iface
;
}
else
{
FIXME
(
"no interface for %s
\n
"
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
HRESULT
WINAPI
AVICompressor_Stop
(
IBaseFilter
*
iface
)
{
AVICompressor
*
This
=
impl_from_IBaseFilter
(
iface
);
...
...
@@ -205,7 +175,7 @@ static HRESULT WINAPI AVICompressor_QueryVendorInfo(IBaseFilter *iface, LPWSTR *
}
static
const
IBaseFilterVtbl
AVICompressorVtbl
=
{
AVICompressor
_QueryInterface
,
BaseFilterImpl
_QueryInterface
,
BaseFilterImpl_AddRef
,
BaseFilterImpl_Release
,
BaseFilterImpl_GetClassID
,
...
...
@@ -253,9 +223,23 @@ static void avi_compressor_destroy(BaseFilter *iface)
heap_free
(
filter
);
}
static
HRESULT
avi_compressor_query_interface
(
BaseFilter
*
iface
,
REFIID
iid
,
void
**
out
)
{
AVICompressor
*
filter
=
impl_from_BaseFilter
(
iface
);
if
(
IsEqualGUID
(
iid
,
&
IID_IPersistPropertyBag
))
*
out
=
&
filter
->
IPersistPropertyBag_iface
;
else
return
E_NOINTERFACE
;
IUnknown_AddRef
((
IUnknown
*
)
*
out
);
return
S_OK
;
}
static
const
BaseFilterFuncTable
filter_func_table
=
{
.
filter_get_pin
=
avi_compressor_get_pin
,
.
filter_destroy
=
avi_compressor_destroy
,
.
filter_query_interface
=
avi_compressor_query_interface
,
};
static
AVICompressor
*
impl_from_IPersistPropertyBag
(
IPersistPropertyBag
*
iface
)
...
...
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