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
b89ad0a7
Commit
b89ad0a7
authored
Sep 25, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Use BasePinImpl_QueryInterface().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8601e224
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
19 deletions
+5
-19
filesource.c
dlls/quartz/filesource.c
+5
-19
No files found.
dlls/quartz/filesource.c
View file @
b89ad0a7
...
...
@@ -560,11 +560,6 @@ static const IFileSourceFilterVtbl FileSource_Vtbl =
FileSource_GetCurFile
};
static
inline
AsyncReader
*
impl_from_IPin
(
IPin
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
AsyncReader
,
source
.
pin
.
IPin_iface
);
}
static
inline
AsyncReader
*
impl_from_strmbase_pin
(
struct
strmbase_pin
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
AsyncReader
,
source
.
pin
);
...
...
@@ -605,24 +600,14 @@ static HRESULT source_get_media_type(struct strmbase_pin *iface, unsigned int in
return
S_OK
;
}
/* overridden pin functions */
static
HRESULT
WINAPI
FileAsyncReaderPin_QueryInterface
(
IPin
*
iface
,
REFIID
iid
,
void
**
out
)
static
HRESULT
source_query_interface
(
struct
strmbase_pin
*
iface
,
REFIID
iid
,
void
**
out
)
{
AsyncReader
*
filter
=
impl_from_IPin
(
iface
);
TRACE
(
"iface %p, iid %s, out %p.
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
AsyncReader
*
filter
=
impl_from_strmbase_pin
(
iface
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
iid
,
&
IID_IPin
))
*
out
=
&
filter
->
source
.
pin
.
IPin_iface
;
else
if
(
IsEqualIID
(
iid
,
&
IID_IAsyncReader
))
if
(
IsEqualGUID
(
iid
,
&
IID_IAsyncReader
))
*
out
=
&
filter
->
IAsyncReader_iface
;
else
{
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
iid
));
*
out
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
out
);
return
S_OK
;
...
...
@@ -630,7 +615,7 @@ static HRESULT WINAPI FileAsyncReaderPin_QueryInterface(IPin *iface, REFIID iid,
static
const
IPinVtbl
FileAsyncReaderPin_Vtbl
=
{
FileAsyncReaderPin
_QueryInterface
,
BasePinImpl
_QueryInterface
,
BasePinImpl_AddRef
,
BasePinImpl_Release
,
BaseOutputPinImpl_Connect
,
...
...
@@ -703,6 +688,7 @@ static const struct strmbase_source_ops source_ops =
{
.
base
.
pin_query_accept
=
source_query_accept
,
.
base
.
pin_get_media_type
=
source_get_media_type
,
.
base
.
pin_query_interface
=
source_query_interface
,
.
pfnAttemptConnection
=
FileAsyncReaderPin_AttemptConnection
,
.
pfnDecideBufferSize
=
FileAsyncReaderPin_DecideBufferSize
,
.
pfnDecideAllocator
=
BaseOutputPinImpl_DecideAllocator
,
...
...
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