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
0f8dbcdf
Commit
0f8dbcdf
authored
Oct 23, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Get rid of the BaseRendererFuncTable typedef.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
487ea5df
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
15 deletions
+16
-15
evr.c
dlls/evr/evr.c
+1
-1
nullrenderer.c
dlls/qedit/nullrenderer.c
+2
-2
dsoundrender.c
dlls/quartz/dsoundrender.c
+2
-2
videorenderer.c
dlls/quartz/videorenderer.c
+2
-2
vmr9.c
dlls/quartz/vmr9.c
+2
-2
renderer.c
dlls/strmbase/renderer.c
+2
-2
strmbase.h
include/wine/strmbase.h
+5
-4
No files found.
dlls/evr/evr.c
View file @
0f8dbcdf
...
...
@@ -61,7 +61,7 @@ static HRESULT WINAPI evr_CheckMediaType(struct strmbase_renderer *iface, const
return
E_NOTIMPL
;
}
static
const
BaseRendererFuncTable
renderer_ops
=
static
const
struct
strmbase_renderer_ops
renderer_ops
=
{
.
pfnCheckMediaType
=
evr_CheckMediaType
,
.
pfnDoRenderSample
=
evr_DoRenderSample
,
...
...
dlls/qedit/nullrenderer.c
View file @
0f8dbcdf
...
...
@@ -55,7 +55,7 @@ static void null_renderer_destroy(struct strmbase_renderer *iface)
CoTaskMemFree
(
filter
);
}
static
const
BaseRendererFuncTable
RendererFuncTable
=
static
const
struct
strmbase_renderer_ops
renderer_ops
=
{
.
pfnCheckMediaType
=
NullRenderer_CheckMediaType
,
.
pfnDoRenderSample
=
NullRenderer_DoRenderSample
,
...
...
@@ -74,7 +74,7 @@ HRESULT NullRenderer_create(IUnknown *outer, void **out)
pNullRenderer
=
CoTaskMemAlloc
(
sizeof
(
NullRendererImpl
));
hr
=
strmbase_renderer_init
(
&
pNullRenderer
->
renderer
,
outer
,
&
CLSID_NullRenderer
,
sink_name
,
&
RendererFuncTable
);
&
CLSID_NullRenderer
,
sink_name
,
&
renderer_ops
);
if
(
FAILED
(
hr
))
CoTaskMemFree
(
pNullRenderer
);
...
...
dlls/quartz/dsoundrender.c
View file @
0f8dbcdf
...
...
@@ -580,7 +580,7 @@ static HRESULT dsound_render_query_interface(struct strmbase_renderer *iface, RE
return
S_OK
;
}
static
const
BaseRendererFuncTable
BaseFuncTable
=
static
const
struct
strmbase_renderer_ops
renderer_ops
=
{
.
pfnCheckMediaType
=
DSoundRender_CheckMediaType
,
.
pfnDoRenderSample
=
DSoundRender_DoRenderSample
,
...
...
@@ -611,7 +611,7 @@ HRESULT DSoundRender_create(IUnknown *outer, void **out)
ZeroMemory
(
pDSoundRender
,
sizeof
(
DSoundRenderImpl
));
hr
=
strmbase_renderer_init
(
&
pDSoundRender
->
renderer
,
outer
,
&
CLSID_DSoundRender
,
sink_name
,
&
BaseFuncTable
);
outer
,
&
CLSID_DSoundRender
,
sink_name
,
&
renderer_ops
);
pDSoundRender
->
IBasicAudio_iface
.
lpVtbl
=
&
IBasicAudio_Vtbl
;
pDSoundRender
->
IReferenceClock_iface
.
lpVtbl
=
&
IReferenceClock_Vtbl
;
...
...
dlls/quartz/videorenderer.c
View file @
0f8dbcdf
...
...
@@ -367,7 +367,7 @@ static BOOL WINAPI VideoRenderer_OnSize(BaseWindow *iface, LONG Width, LONG Heig
return
TRUE
;
}
static
const
BaseRendererFuncTable
BaseFuncTable
=
static
const
struct
strmbase_renderer_ops
renderer_ops
=
{
.
pfnCheckMediaType
=
VideoRenderer_CheckMediaType
,
.
pfnDoRenderSample
=
VideoRenderer_DoRenderSample
,
...
...
@@ -760,7 +760,7 @@ HRESULT VideoRenderer_create(IUnknown *outer, void **out)
pVideoRenderer
->
IOverlay_iface
.
lpVtbl
=
&
overlay_vtbl
;
hr
=
strmbase_renderer_init
(
&
pVideoRenderer
->
renderer
,
outer
,
&
CLSID_VideoRenderer
,
sink_name
,
&
BaseFuncTable
);
&
CLSID_VideoRenderer
,
sink_name
,
&
renderer_ops
);
if
(
FAILED
(
hr
))
goto
fail
;
...
...
dlls/quartz/vmr9.c
View file @
0f8dbcdf
...
...
@@ -555,7 +555,7 @@ static HRESULT vmr_pin_query_interface(struct strmbase_renderer *iface, REFIID i
return
S_OK
;
}
static
const
BaseRendererFuncTable
BaseFuncTable
=
static
const
struct
strmbase_renderer_ops
renderer_ops
=
{
.
pfnCheckMediaType
=
VMR9_CheckMediaType
,
.
pfnDoRenderSample
=
VMR9_DoRenderSample
,
...
...
@@ -2229,7 +2229,7 @@ static HRESULT vmr_create(IUnknown *outer, void **out, const CLSID *clsid)
pVMR
->
IVMRWindowlessControl9_iface
.
lpVtbl
=
&
VMR9_WindowlessControl_Vtbl
;
pVMR
->
IOverlay_iface
.
lpVtbl
=
&
overlay_vtbl
;
hr
=
strmbase_renderer_init
(
&
pVMR
->
renderer
,
outer
,
clsid
,
sink_name
,
&
BaseFuncTable
);
hr
=
strmbase_renderer_init
(
&
pVMR
->
renderer
,
outer
,
clsid
,
sink_name
,
&
renderer_ops
);
if
(
FAILED
(
hr
))
goto
fail
;
...
...
dlls/strmbase/renderer.c
View file @
0f8dbcdf
...
...
@@ -561,14 +561,14 @@ HRESULT WINAPI BaseRendererImpl_ClearPendingSample(struct strmbase_renderer *ifa
}
HRESULT
WINAPI
strmbase_renderer_init
(
struct
strmbase_renderer
*
filter
,
IUnknown
*
outer
,
const
CLSID
*
clsid
,
const
WCHAR
*
sink_name
,
const
BaseRendererFuncTable
*
func_table
)
const
CLSID
*
clsid
,
const
WCHAR
*
sink_name
,
const
struct
strmbase_renderer_ops
*
ops
)
{
HRESULT
hr
;
memset
(
filter
,
0
,
sizeof
(
*
filter
));
strmbase_filter_init
(
&
filter
->
filter
,
&
strmbase_renderer_vtbl
,
outer
,
clsid
,
&
filter_ops
);
filter
->
pFuncsTable
=
func_table
;
filter
->
pFuncsTable
=
ops
;
strmbase_sink_init
(
&
filter
->
sink
,
&
BaseRenderer_InputPin_Vtbl
,
&
filter
->
filter
,
sink_name
,
&
input_BaseInputFuncTable
,
NULL
);
...
...
include/wine/strmbase.h
View file @
0f8dbcdf
...
...
@@ -527,7 +527,7 @@ struct strmbase_renderer
IQualityControl
*
pQSink
;
struct
QualityControlImpl
*
qcimpl
;
const
struct
BaseRendererFuncTable
*
pFuncsTable
;
const
struct
strmbase_renderer_ops
*
pFuncsTable
;
};
typedef
HRESULT
(
WINAPI
*
BaseRenderer_CheckMediaType
)(
struct
strmbase_renderer
*
iface
,
const
AM_MEDIA_TYPE
*
mt
);
...
...
@@ -541,7 +541,8 @@ typedef HRESULT (WINAPI *BaseRenderer_EndFlush) (struct strmbase_renderer *iface
typedef
HRESULT
(
WINAPI
*
BaseRenderer_BreakConnect
)
(
struct
strmbase_renderer
*
iface
);
typedef
HRESULT
(
WINAPI
*
BaseRenderer_CompleteConnect
)
(
struct
strmbase_renderer
*
iface
,
IPin
*
peer
);
typedef
struct
BaseRendererFuncTable
{
struct
strmbase_renderer_ops
{
BaseRenderer_CheckMediaType
pfnCheckMediaType
;
BaseRenderer_DoRenderSample
pfnDoRenderSample
;
void
(
*
renderer_init_stream
)(
struct
strmbase_renderer
*
iface
);
...
...
@@ -556,7 +557,7 @@ typedef struct BaseRendererFuncTable {
void
(
*
renderer_destroy
)(
struct
strmbase_renderer
*
iface
);
HRESULT
(
*
renderer_query_interface
)(
struct
strmbase_renderer
*
iface
,
REFIID
iid
,
void
**
out
);
HRESULT
(
*
renderer_pin_query_interface
)(
struct
strmbase_renderer
*
iface
,
REFIID
iid
,
void
**
out
);
}
BaseRendererFuncTable
;
};
HRESULT
WINAPI
BaseRendererImpl_BeginFlush
(
struct
strmbase_renderer
*
filter
);
HRESULT
WINAPI
BaseRendererImpl_ClearPendingSample
(
struct
strmbase_renderer
*
filter
);
...
...
@@ -565,7 +566,7 @@ HRESULT WINAPI BaseRendererImpl_EndFlush(struct strmbase_renderer *filter);
HRESULT
WINAPI
BaseRendererImpl_Receive
(
struct
strmbase_renderer
*
filter
,
IMediaSample
*
sample
);
HRESULT
WINAPI
strmbase_renderer_init
(
struct
strmbase_renderer
*
filter
,
IUnknown
*
outer
,
const
CLSID
*
clsid
,
const
WCHAR
*
sink_name
,
const
BaseRendererFuncTable
*
func_table
);
const
CLSID
*
clsid
,
const
WCHAR
*
sink_name
,
const
struct
strmbase_renderer_ops
*
ops
);
void
strmbase_renderer_cleanup
(
struct
strmbase_renderer
*
filter
);
/* Dll Functions */
...
...
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