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
22848359
Commit
22848359
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: Basic COM cleanup for IPin iface of VfwCapture.
parent
e3c6777e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
vfwcapture.c
dlls/qcap/vfwcapture.c
+15
-5
No files found.
dlls/qcap/vfwcapture.c
View file @
22848359
...
...
@@ -670,9 +670,14 @@ static const IKsPropertySetVtbl KSP_VTable =
KSP_QuerySupported
};
static
HRESULT
WINAPI
VfwPin_GetMediaType
(
BasePin
*
iface
,
int
iPosition
,
AM_MEDIA_TYPE
*
pmt
)
static
inline
VfwPinImpl
*
impl_from_BasePin
(
BasePin
*
pin
)
{
VfwPinImpl
*
This
=
(
VfwPinImpl
*
)
iface
;
return
CONTAINING_RECORD
(
pin
,
VfwPinImpl
,
pin
.
pin
);
}
static
HRESULT
WINAPI
VfwPin_GetMediaType
(
BasePin
*
pin
,
int
iPosition
,
AM_MEDIA_TYPE
*
pmt
)
{
VfwPinImpl
*
This
=
impl_from_BasePin
(
pin
);
AM_MEDIA_TYPE
*
vfw_pmt
;
HRESULT
hr
;
...
...
@@ -748,9 +753,14 @@ VfwPin_Construct( IBaseFilter * pBaseFilter, LPCRITICAL_SECTION pCritSec,
return
hr
;
}
static
inline
VfwPinImpl
*
impl_from_IPin
(
IPin
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
VfwPinImpl
,
pin
.
pin
.
IPin_iface
);
}
static
HRESULT
WINAPI
VfwPin_QueryInterface
(
IPin
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
VfwPinImpl
*
This
=
(
VfwPinImpl
*
)
iface
;
VfwPinImpl
*
This
=
impl_from_IPin
(
iface
)
;
TRACE
(
"%s %p
\n
"
,
debugstr_guid
(
riid
),
ppv
);
...
...
@@ -775,7 +785,7 @@ static HRESULT WINAPI VfwPin_QueryInterface(IPin * iface, REFIID riid, LPVOID *
static
ULONG
WINAPI
VfwPin_Release
(
IPin
*
iface
)
{
VfwPinImpl
*
This
=
(
VfwPinImpl
*
)
iface
;
VfwPinImpl
*
This
=
impl_from_IPin
(
iface
)
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
pin
.
pin
.
refCount
);
TRACE
(
"() -> new refcount: %u
\n
"
,
refCount
);
...
...
@@ -791,10 +801,10 @@ VfwPin_Release(IPin * iface)
static
HRESULT
WINAPI
VfwPin_EnumMediaTypes
(
IPin
*
iface
,
IEnumMediaTypes
**
ppEnum
)
{
VfwPinImpl
*
This
=
impl_from_IPin
(
iface
);
AM_MEDIA_TYPE
*
pmt
;
HRESULT
hr
;
VfwPinImpl
*
This
=
(
VfwPinImpl
*
)
iface
;
hr
=
qcap_driver_get_format
(
This
->
parent
->
driver_info
,
&
pmt
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
BasePinImpl_EnumMediaTypes
(
iface
,
ppEnum
);
...
...
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