Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1454a661
Commit
1454a661
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: Move strmbase_renderer_init() to avoid forward declarations.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3f698b95
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
36 deletions
+34
-36
renderer.c
dlls/strmbase/renderer.c
+34
-36
No files found.
dlls/strmbase/renderer.c
View file @
1454a661
...
@@ -250,42 +250,6 @@ static const BaseInputPinFuncTable input_BaseInputFuncTable =
...
@@ -250,42 +250,6 @@ static const BaseInputPinFuncTable input_BaseInputFuncTable =
.
pfnReceive
=
BaseRenderer_Receive
,
.
pfnReceive
=
BaseRenderer_Receive
,
};
};
static
const
IBaseFilterVtbl
strmbase_renderer_vtbl
;
HRESULT
WINAPI
strmbase_renderer_init
(
BaseRenderer
*
filter
,
IUnknown
*
outer
,
const
CLSID
*
clsid
,
const
WCHAR
*
sink_name
,
const
BaseRendererFuncTable
*
pBaseFuncsTable
)
{
HRESULT
hr
;
memset
(
filter
,
0
,
sizeof
(
*
filter
));
strmbase_filter_init
(
&
filter
->
filter
,
&
strmbase_renderer_vtbl
,
outer
,
clsid
,
&
filter_ops
);
filter
->
pFuncsTable
=
pBaseFuncsTable
;
strmbase_sink_init
(
&
filter
->
sink
,
&
BaseRenderer_InputPin_Vtbl
,
&
filter
->
filter
,
sink_name
,
&
input_BaseInputFuncTable
,
NULL
);
hr
=
CreatePosPassThru
(
outer
?
outer
:
(
IUnknown
*
)
&
filter
->
filter
.
IBaseFilter_iface
,
TRUE
,
&
filter
->
sink
.
pin
.
IPin_iface
,
&
filter
->
pPosition
);
if
(
FAILED
(
hr
))
{
strmbase_sink_cleanup
(
&
filter
->
sink
);
strmbase_filter_cleanup
(
&
filter
->
filter
);
return
hr
;
}
InitializeCriticalSection
(
&
filter
->
csRenderLock
);
filter
->
csRenderLock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BaseRenderer.csRenderLock"
);
filter
->
state_event
=
CreateEventW
(
NULL
,
TRUE
,
TRUE
,
NULL
);
filter
->
advise_event
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
filter
->
flush_event
=
CreateEventW
(
NULL
,
TRUE
,
TRUE
,
NULL
);
QualityControlImpl_Create
(
&
filter
->
sink
.
pin
.
IPin_iface
,
&
filter
->
filter
.
IBaseFilter_iface
,
&
filter
->
qcimpl
);
filter
->
qcimpl
->
IQualityControl_iface
.
lpVtbl
=
&
Renderer_QualityControl_Vtbl
;
return
S_OK
;
}
void
strmbase_renderer_cleanup
(
BaseRenderer
*
filter
)
void
strmbase_renderer_cleanup
(
BaseRenderer
*
filter
)
{
{
if
(
filter
->
sink
.
pin
.
peer
)
if
(
filter
->
sink
.
pin
.
peer
)
...
@@ -595,3 +559,37 @@ HRESULT WINAPI BaseRendererImpl_ClearPendingSample(BaseRenderer *iface)
...
@@ -595,3 +559,37 @@ HRESULT WINAPI BaseRendererImpl_ClearPendingSample(BaseRenderer *iface)
}
}
return
S_OK
;
return
S_OK
;
}
}
HRESULT
WINAPI
strmbase_renderer_init
(
BaseRenderer
*
filter
,
IUnknown
*
outer
,
const
CLSID
*
clsid
,
const
WCHAR
*
sink_name
,
const
BaseRendererFuncTable
*
func_table
)
{
HRESULT
hr
;
memset
(
filter
,
0
,
sizeof
(
*
filter
));
strmbase_filter_init
(
&
filter
->
filter
,
&
strmbase_renderer_vtbl
,
outer
,
clsid
,
&
filter_ops
);
filter
->
pFuncsTable
=
func_table
;
strmbase_sink_init
(
&
filter
->
sink
,
&
BaseRenderer_InputPin_Vtbl
,
&
filter
->
filter
,
sink_name
,
&
input_BaseInputFuncTable
,
NULL
);
hr
=
CreatePosPassThru
(
outer
?
outer
:
(
IUnknown
*
)
&
filter
->
filter
.
IBaseFilter_iface
,
TRUE
,
&
filter
->
sink
.
pin
.
IPin_iface
,
&
filter
->
pPosition
);
if
(
FAILED
(
hr
))
{
strmbase_sink_cleanup
(
&
filter
->
sink
);
strmbase_filter_cleanup
(
&
filter
->
filter
);
return
hr
;
}
InitializeCriticalSection
(
&
filter
->
csRenderLock
);
filter
->
csRenderLock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BaseRenderer.csRenderLock"
);
filter
->
state_event
=
CreateEventW
(
NULL
,
TRUE
,
TRUE
,
NULL
);
filter
->
advise_event
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
filter
->
flush_event
=
CreateEventW
(
NULL
,
TRUE
,
TRUE
,
NULL
);
QualityControlImpl_Create
(
&
filter
->
sink
.
pin
.
IPin_iface
,
&
filter
->
filter
.
IBaseFilter_iface
,
&
filter
->
qcimpl
);
filter
->
qcimpl
->
IQualityControl_iface
.
lpVtbl
=
&
Renderer_QualityControl_Vtbl
;
return
S_OK
;
}
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