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
5c83561b
Commit
5c83561b
authored
Dec 07, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Use BasePinImpl_QueryInterface().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
54ccf805
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
50 deletions
+13
-50
gstdemux.c
dlls/winegstreamer/gstdemux.c
+13
-50
No files found.
dlls/winegstreamer/gstdemux.c
View file @
5c83561b
...
...
@@ -1735,29 +1735,19 @@ static inline struct gstdemux_source *impl_source_from_IPin(IPin *iface)
return
CONTAINING_RECORD
(
iface
,
struct
gstdemux_source
,
pin
.
pin
.
IPin_iface
);
}
static
HRESULT
WINAPI
GSTOutPin_QueryInterface
(
IPin
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
source_query_interface
(
struct
strmbase_pin
*
iface
,
REFIID
iid
,
void
**
out
)
{
struct
gstdemux_source
*
This
=
impl_source_from_IPin
(
iface
);
struct
gstdemux_source
*
pin
=
impl_source_from_IPin
(
&
iface
->
IPin_
iface
);
TRACE
(
"(%p)->(%s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
*
ppv
=
iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IPin
))
*
ppv
=
iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
*
ppv
=
&
This
->
seek
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IQualityControl
))
*
ppv
=
&
This
->
IQualityControl_iface
;
if
(
IsEqualGUID
(
iid
,
&
IID_IMediaSeeking
))
*
out
=
&
pin
->
seek
.
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
)
...
...
@@ -1847,7 +1837,7 @@ static void free_source_pin(struct gstdemux_source *pin)
}
static
const
IPinVtbl
GST_OutputPin_Vtbl
=
{
GSTOutPin
_QueryInterface
,
BasePinImpl
_QueryInterface
,
BasePinImpl_AddRef
,
BasePinImpl_Release
,
BaseOutputPinImpl_Connect
,
...
...
@@ -1869,6 +1859,7 @@ static const IPinVtbl GST_OutputPin_Vtbl = {
static
const
struct
strmbase_source_ops
source_ops
=
{
.
base
.
pin_query_interface
=
source_query_interface
,
.
base
.
pin_query_accept
=
source_query_accept
,
.
base
.
pin_get_media_type
=
source_get_media_type
,
.
pfnAttemptConnection
=
BaseOutputPinImpl_AttemptConnection
,
...
...
@@ -2071,36 +2062,8 @@ static HRESULT WINAPI GSTInPin_NewSegment(IPin *iface, REFERENCE_TIME start,
return
S_OK
;
}
static
HRESULT
WINAPI
GSTInPin_QueryInterface
(
IPin
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
struct
gstdemux
*
filter
=
impl_from_sink_IPin
(
iface
);
TRACE
(
"filter %p, riid %s, ppv %p.
\n
"
,
filter
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
*
ppv
=
iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IPin
))
*
ppv
=
iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
{
return
IBaseFilter_QueryInterface
(
&
filter
->
filter
.
IBaseFilter_iface
,
&
IID_IMediaSeeking
,
ppv
);
}
if
(
*
ppv
)
{
IUnknown_AddRef
((
IUnknown
*
)(
*
ppv
));
return
S_OK
;
}
FIXME
(
"No interface for %s!
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
static
const
IPinVtbl
GST_InputPin_Vtbl
=
{
GSTInPin
_QueryInterface
,
BasePinImpl
_QueryInterface
,
BasePinImpl_AddRef
,
BasePinImpl_Release
,
BaseInputPinImpl_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