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
724b7f08
Commit
724b7f08
authored
Dec 07, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineqtdecoder: Use BasePinImpl_QueryInterface().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5c83561b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
32 deletions
+13
-32
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+13
-32
No files found.
dlls/wineqtdecoder/qtsplitter.c
View file @
724b7f08
...
...
@@ -1140,15 +1140,7 @@ static const IPinVtbl QT_InputPin_Vtbl = {
QTInPin_NewSegment
};
/*
* Output Pin
*/
static
inline
QTOutPin
*
impl_QTOutPin_from_IPin
(
IPin
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
QTOutPin
,
pin
.
pin
.
IPin_iface
);
}
static
inline
QTOutPin
*
impl_sink_from_strmbase_pin
(
struct
strmbase_pin
*
iface
)
static
inline
QTOutPin
*
impl_source_from_strmbase_pin
(
struct
strmbase_pin
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
QTOutPin
,
pin
.
pin
);
}
...
...
@@ -1158,30 +1150,19 @@ static inline QTOutPin *impl_QTOutPin_from_BaseOutputPin(struct strmbase_source
return
CONTAINING_RECORD
(
iface
,
QTOutPin
,
pin
);
}
static
HRESULT
WINAPI
QTOutPin_QueryInterface
(
IPin
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
source_query_interface
(
struct
strmbase_pin
*
iface
,
REFIID
iid
,
void
**
out
)
{
QTOutPin
*
This
=
impl_QTOutPin_from_IPin
(
iface
);
TRACE
(
"(%s, %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
QTOutPin
*
pin
=
impl_source_from_strmbase_pin
(
&
iface
->
IPin_iface
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
*
ppv
=
iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IPin
))
*
ppv
=
iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
*
ppv
=
&
This
->
seeking
.
IMediaSeeking_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IQualityControl
))
*
ppv
=
&
This
->
IQualityControl_iface
;
if
(
IsEqualGUID
(
iid
,
&
IID_IMediaSeeking
))
*
out
=
&
pin
->
seeking
.
IMediaSeeking_iface
;
else
if
(
IsEqualGUID
(
iid
,
&
IID_IQualityControl
))
*
out
=
&
pin
->
IQualityControl_iface
;
else
return
E_NOINTERFACE
;
if
(
*
ppv
)
{
IUnknown_AddRef
((
IUnknown
*
)(
*
ppv
));
return
S_OK
;
}
FIXME
(
"No interface for %s!
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
IUnknown_AddRef
((
IUnknown
*
)
*
out
);
return
S_OK
;
}
static
HRESULT
source_query_accept
(
struct
strmbase_pin
*
base
,
const
AM_MEDIA_TYPE
*
amt
)
...
...
@@ -1192,7 +1173,7 @@ static HRESULT source_query_accept(struct strmbase_pin *base, const AM_MEDIA_TYP
static
HRESULT
source_get_media_type
(
struct
strmbase_pin
*
iface
,
unsigned
int
iPosition
,
AM_MEDIA_TYPE
*
pmt
)
{
QTOutPin
*
This
=
impl_s
ink
_from_strmbase_pin
(
iface
);
QTOutPin
*
This
=
impl_s
ource
_from_strmbase_pin
(
iface
);
if
(
iPosition
>
0
)
return
VFW_S_NO_MORE_ITEMS
;
...
...
@@ -1231,7 +1212,7 @@ static HRESULT WINAPI QTOutPin_DecideAllocator(struct strmbase_source *iface,
}
static
const
IPinVtbl
QT_OutputPin_Vtbl
=
{
QTOutPin
_QueryInterface
,
BasePinImpl
_QueryInterface
,
BasePinImpl_AddRef
,
BasePinImpl_Release
,
BaseOutputPinImpl_Connect
,
...
...
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