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
5b9ae5ad
Commit
5b9ae5ad
authored
Jul 03, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Implement CBaseFilter::FindPin().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9313cb08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
filter.c
dlls/strmbase/filter.c
+31
-0
strmbase.h
include/wine/strmbase.h
+1
-0
No files found.
dlls/strmbase/filter.c
View file @
5b9ae5ad
...
...
@@ -141,6 +141,37 @@ HRESULT WINAPI BaseFilterImpl_EnumPins(IBaseFilter * iface, IEnumPins **ppEnum)
return
EnumPins_Construct
(
This
,
This
->
pFuncsTable
->
pfnGetPin
,
This
->
pFuncsTable
->
pfnGetPinCount
,
BaseFilterImpl_GetPinVersion
,
ppEnum
);
}
HRESULT
WINAPI
BaseFilterImpl_FindPin
(
IBaseFilter
*
iface
,
const
WCHAR
*
id
,
IPin
**
ret
)
{
BaseFilter
*
This
=
impl_from_IBaseFilter
(
iface
);
PIN_INFO
info
;
HRESULT
hr
;
IPin
*
pin
;
int
i
;
TRACE
(
"(%p)->(%s, %p)
\n
"
,
This
,
debugstr_w
(
id
),
ret
);
for
(
i
=
0
;
i
<
This
->
pFuncsTable
->
pfnGetPinCount
(
This
);
++
i
)
{
pin
=
This
->
pFuncsTable
->
pfnGetPin
(
This
,
i
);
hr
=
IPin_QueryPinInfo
(
pin
,
&
info
);
if
(
FAILED
(
hr
))
{
IPin_Release
(
pin
);
return
hr
;
}
if
(
!
strcmpW
(
id
,
info
.
achName
))
{
*
ret
=
pin
;
return
S_OK
;
}
IPin_Release
(
pin
);
}
return
VFW_E_NOT_FOUND
;
}
HRESULT
WINAPI
BaseFilterImpl_QueryFilterInfo
(
IBaseFilter
*
iface
,
FILTER_INFO
*
pInfo
)
{
...
...
include/wine/strmbase.h
View file @
5b9ae5ad
...
...
@@ -190,6 +190,7 @@ HRESULT WINAPI BaseFilterImpl_GetState(IBaseFilter * iface, DWORD dwMilliSecsTim
HRESULT
WINAPI
BaseFilterImpl_SetSyncSource
(
IBaseFilter
*
iface
,
IReferenceClock
*
pClock
);
HRESULT
WINAPI
BaseFilterImpl_GetSyncSource
(
IBaseFilter
*
iface
,
IReferenceClock
**
ppClock
);
HRESULT
WINAPI
BaseFilterImpl_EnumPins
(
IBaseFilter
*
iface
,
IEnumPins
**
ppEnum
);
HRESULT
WINAPI
BaseFilterImpl_FindPin
(
IBaseFilter
*
iface
,
const
WCHAR
*
id
,
IPin
**
pin
);
HRESULT
WINAPI
BaseFilterImpl_QueryFilterInfo
(
IBaseFilter
*
iface
,
FILTER_INFO
*
pInfo
);
HRESULT
WINAPI
BaseFilterImpl_JoinFilterGraph
(
IBaseFilter
*
iface
,
IFilterGraph
*
pGraph
,
LPCWSTR
pName
);
HRESULT
WINAPI
BaseFilterImpl_QueryVendorInfo
(
IBaseFilter
*
iface
,
LPWSTR
*
pVendorInfo
);
...
...
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