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
5757a07f
Commit
5757a07f
authored
Oct 01, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Add a callback to expose renderer pin interfaces.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
94efc8b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
renderer.c
dlls/strmbase/renderer.c
+5
-0
strmbase.h
include/wine/strmbase.h
+1
-0
No files found.
dlls/strmbase/renderer.c
View file @
5757a07f
...
...
@@ -220,6 +220,11 @@ static HRESULT sink_query_accept(struct strmbase_pin *pin, const AM_MEDIA_TYPE *
static
HRESULT
sink_query_interface
(
struct
strmbase_pin
*
iface
,
REFIID
iid
,
void
**
out
)
{
BaseRenderer
*
filter
=
impl_from_IPin
(
&
iface
->
IPin_iface
);
HRESULT
hr
;
if
(
filter
->
pFuncsTable
->
renderer_pin_query_interface
&&
SUCCEEDED
(
hr
=
filter
->
pFuncsTable
->
renderer_pin_query_interface
(
filter
,
iid
,
out
)))
return
hr
;
if
(
IsEqualGUID
(
iid
,
&
IID_IMemInputPin
))
*
out
=
&
filter
->
sink
.
IMemInputPin_iface
;
...
...
include/wine/strmbase.h
View file @
5757a07f
...
...
@@ -574,6 +574,7 @@ typedef struct BaseRendererFuncTable {
BaseRenderer_EndFlush
pfnEndFlush
;
void
(
*
renderer_destroy
)(
BaseRenderer
*
iface
);
HRESULT
(
*
renderer_query_interface
)(
BaseRenderer
*
iface
,
REFIID
iid
,
void
**
out
);
HRESULT
(
*
renderer_pin_query_interface
)(
BaseRenderer
*
iface
,
REFIID
iid
,
void
**
out
);
}
BaseRendererFuncTable
;
HRESULT
WINAPI
BaseRendererImpl_Receive
(
BaseRenderer
*
This
,
IMediaSample
*
pSample
);
...
...
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