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
fa280172
Commit
fa280172
authored
Sep 25, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Introduce BasePinImpl_QueryInterface().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
df509be8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
pin.c
dlls/strmbase/pin.c
+25
-0
strmbase.h
include/wine/strmbase.h
+2
-0
No files found.
dlls/strmbase/pin.c
View file @
fa280172
...
...
@@ -157,6 +157,31 @@ HRESULT strmbase_pin_get_media_type(struct strmbase_pin *iface, unsigned int ind
return
VFW_S_NO_MORE_ITEMS
;
}
HRESULT
WINAPI
BasePinImpl_QueryInterface
(
IPin
*
iface
)
{
struct
strmbase_pin
*
pin
=
impl_from_IPin
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, iid %s, out %p.
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
*
out
=
NULL
;
if
(
pin
->
pFuncsTable
->
pin_query_interface
&&
SUCCEEDED
(
hr
=
pin
->
pFuncsTable
->
pin_query_interface
(
filter
,
iid
,
out
)))
return
hr
;
if
(
IsEqualIID
(
iid
,
&
IID_IUnknown
)
||
IsEqualIID
(
iid
,
&
IID_IPin
))
*
out
=
iface
;
else
{
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
iid
));
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
out
);
return
S_OK
;
}
ULONG
WINAPI
BasePinImpl_AddRef
(
IPin
*
iface
)
{
struct
strmbase_pin
*
pin
=
impl_from_IPin
(
iface
);
...
...
include/wine/strmbase.h
View file @
fa280172
...
...
@@ -47,6 +47,7 @@ typedef struct BasePinFuncTable {
HRESULT
(
*
pin_query_accept
)(
struct
strmbase_pin
*
pin
,
const
AM_MEDIA_TYPE
*
mt
);
/* Required for EnumMediaTypes(). */
HRESULT
(
*
pin_get_media_type
)(
struct
strmbase_pin
*
pin
,
unsigned
int
index
,
AM_MEDIA_TYPE
*
mt
);
HRESULT
(
*
pin_query_interface
)(
struct
strmbase_pin
*
pin
,
REFIID
iid
,
void
**
out
);
}
BasePinFuncTable
;
struct
strmbase_source
...
...
@@ -97,6 +98,7 @@ typedef struct BaseInputPinFuncTable {
/* Base Pin */
HRESULT
strmbase_pin_get_media_type
(
struct
strmbase_pin
*
pin
,
unsigned
int
index
,
AM_MEDIA_TYPE
*
mt
);
LONG
WINAPI
BasePinImpl_GetMediaTypeVersion
(
struct
strmbase_pin
*
pin
);
HRESULT
WINAPI
BasePinImpl_QueryInterface
(
IPin
*
iface
,
REFIID
iid
,
void
**
out
);
ULONG
WINAPI
BasePinImpl_AddRef
(
IPin
*
iface
);
ULONG
WINAPI
BasePinImpl_Release
(
IPin
*
iface
);
HRESULT
WINAPI
BasePinImpl_Disconnect
(
IPin
*
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