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
487472b3
Commit
487472b3
authored
Aug 03, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: COM cleanup for the IKsPropertySet iface.
parent
22848359
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
26 deletions
+16
-26
vfwcapture.c
dlls/qcap/vfwcapture.c
+16
-26
No files found.
dlls/qcap/vfwcapture.c
View file @
487472b3
...
...
@@ -44,9 +44,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
qcap
);
#define ICOM_THIS_MULTI(impl,field,iface) \
impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
static
const
IBaseFilterVtbl
VfwCapture_Vtbl
;
static
const
IAMStreamConfigVtbl
IAMStreamConfig_VTable
;
static
const
IAMVideoProcAmpVtbl
IAMVideoProcAmp_VTable
;
...
...
@@ -103,8 +100,8 @@ static inline VfwCapture *impl_from_IPersistPropertyBag(IPersistPropertyBag *ifa
typedef
struct
VfwPinImpl
{
BaseOutputPin
pin
;
IKsPropertySet
IKsPropertySet_iface
;
VfwCapture
*
parent
;
const
IKsPropertySetVtbl
*
KSP_VT
;
}
VfwPinImpl
;
...
...
@@ -585,37 +582,30 @@ static const IPersistPropertyBagVtbl IPersistPropertyBag_VTable =
};
/* IKsPropertySet interface */
static
HRESULT
WINAPI
KSP_QueryInterface
(
IKsPropertySet
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
inline
VfwPinImpl
*
impl_from_IKsPropertySet
(
IKsPropertySet
*
iface
)
{
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IKsPropertySet
))
{
*
ppv
=
iface
;
IKsPropertySet_AddRef
(
iface
);
return
S_OK
;
}
return
CONTAINING_RECORD
(
iface
,
VfwPinImpl
,
IKsPropertySet_iface
);
}
FIXME
(
"No interface for iid %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
static
HRESULT
WINAPI
KSP_QueryInterface
(
IKsPropertySet
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
{
VfwPinImpl
*
This
=
impl_from_IKsPropertySet
(
iface
);
return
IPin_QueryInterface
(
&
This
->
pin
.
pin
.
IPin_iface
,
riid
,
ret_iface
);
}
static
ULONG
WINAPI
KSP_AddRef
(
IKsPropertySet
*
iface
)
{
ICOM_THIS_MULTI
(
VfwPinImpl
,
KSP_VT
,
iface
);
VfwPinImpl
*
This
=
impl_from_IKsPropertySet
(
iface
);
TRACE
(
"%p --> Forwarding to VfwPin (%p)
\n
"
,
iface
,
This
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
return
IPin_AddRef
(
&
This
->
pin
.
pin
.
IPin_iface
);
}
static
ULONG
WINAPI
KSP_Release
(
IKsPropertySet
*
iface
)
{
ICOM_THIS_MULTI
(
VfwPinImpl
,
KSP_VT
,
iface
);
TRACE
(
"%p --> Forwarding to VfwPin (%p)
\n
"
,
iface
,
This
);
VfwPinImpl
*
This
=
impl_from_IKsPropertySet
(
iface
);
return
I
Unknown_Release
((
IUnknown
*
)
This
);
return
I
Pin_Release
(
&
This
->
pin
.
pin
.
IPin_iface
);
}
static
HRESULT
WINAPI
...
...
@@ -660,7 +650,7 @@ KSP_QuerySupported( IKsPropertySet * iface, REFGUID guidPropSet,
return
E_NOTIMPL
;
}
static
const
IKsPropertySetVtbl
KSP
_VTable
=
static
const
IKsPropertySetVtbl
IKsPropertySet
_VTable
=
{
KSP_QueryInterface
,
KSP_AddRef
,
...
...
@@ -746,7 +736,7 @@ VfwPin_Construct( IBaseFilter * pBaseFilter, LPCRITICAL_SECTION pCritSec,
if
(
SUCCEEDED
(
hr
))
{
VfwPinImpl
*
pPinImpl
=
(
VfwPinImpl
*
)
*
ppPin
;
pPinImpl
->
KSP_VT
=
&
KSP
_VTable
;
pPinImpl
->
IKsPropertySet_iface
.
lpVtbl
=
&
IKsPropertySet
_VTable
;
ObjectRefCount
(
TRUE
);
}
...
...
@@ -768,7 +758,7 @@ static HRESULT WINAPI VfwPin_QueryInterface(IPin * iface, REFIID riid, LPVOID *
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IPin
))
*
ppv
=
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IKsPropertySet
))
*
ppv
=
&
(
This
->
KSP_VT
)
;
*
ppv
=
&
This
->
IKsPropertySet_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMStreamConfig
))
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
->
parent
,
riid
,
ppv
);
...
...
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