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
675af1eb
Commit
675af1eb
authored
Oct 22, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Introduce renderer_init_stream().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eca7b245
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 @
675af1eb
...
...
@@ -438,6 +438,9 @@ HRESULT WINAPI BaseRendererImpl_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
if
(
This
->
filter
.
state
==
State_Running
)
goto
out
;
if
(
This
->
filter
.
state
==
State_Stopped
&&
This
->
pFuncsTable
->
renderer_init_stream
)
This
->
pFuncsTable
->
renderer_init_stream
(
This
);
SetEvent
(
This
->
state_event
);
if
(
This
->
sink
.
pin
.
peer
)
...
...
@@ -477,6 +480,8 @@ HRESULT WINAPI BaseRendererImpl_Pause(IBaseFilter * iface)
hr
=
S_FALSE
;
}
This
->
sink
.
end_of_stream
=
FALSE
;
if
(
This
->
pFuncsTable
->
renderer_init_stream
)
This
->
pFuncsTable
->
renderer_init_stream
(
This
);
}
else
if
(
This
->
sink
.
pin
.
peer
&&
This
->
pFuncsTable
->
renderer_stop_stream
)
This
->
pFuncsTable
->
renderer_stop_stream
(
This
);
...
...
include/wine/strmbase.h
View file @
675af1eb
...
...
@@ -550,6 +550,7 @@ typedef HRESULT (WINAPI *BaseRenderer_CompleteConnect) (BaseRenderer *This, IPin
typedef
struct
BaseRendererFuncTable
{
BaseRenderer_CheckMediaType
pfnCheckMediaType
;
BaseRenderer_DoRenderSample
pfnDoRenderSample
;
void
(
*
renderer_init_stream
)(
BaseRenderer
*
iface
);
void
(
*
renderer_start_stream
)(
BaseRenderer
*
iface
);
void
(
*
renderer_stop_stream
)(
BaseRenderer
*
iface
);
BaseRenderer_ShouldDrawSampleNow
pfnShouldDrawSampleNow
;
...
...
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