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
c6f0124e
Commit
c6f0124e
authored
Mar 13, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Pass start and flush messages to transform nodes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7454ac9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
session.c
dlls/mf/session.c
+17
-2
No files found.
dlls/mf/session.c
View file @
c6f0124e
...
...
@@ -1827,6 +1827,12 @@ static HRESULT session_start_clock(struct media_session *session)
struct
topo_node
*
node
;
HRESULT
hr
;
LIST_FOR_EACH_ENTRY
(
node
,
&
session
->
presentation
.
nodes
,
struct
topo_node
,
entry
)
{
if
(
node
->
type
==
MF_TOPOLOGY_TRANSFORM_NODE
)
IMFTransform_ProcessMessage
(
node
->
object
.
transform
,
MFT_MESSAGE_NOTIFY_START_OF_STREAM
,
0
);
}
if
(
!
(
session
->
presentation
.
flags
&
SESSION_FLAG_SINKS_SUBSCRIBED
))
{
LIST_FOR_EACH_ENTRY
(
sink
,
&
session
->
presentation
.
sinks
,
struct
media_sink
,
entry
)
...
...
@@ -1968,8 +1974,17 @@ static void session_set_source_object_state(struct media_session *session, IUnkn
LIST_FOR_EACH_ENTRY
(
node
,
&
session
->
presentation
.
nodes
,
struct
topo_node
,
entry
)
{
if
(
node
->
type
==
MF_TOPOLOGY_OUTPUT_NODE
)
IMFStreamSink_Flush
(
node
->
object
.
sink_stream
);
switch
(
node
->
type
)
{
case
MF_TOPOLOGY_OUTPUT_NODE
:
IMFStreamSink_Flush
(
node
->
object
.
sink_stream
);
break
;
case
MF_TOPOLOGY_TRANSFORM_NODE
:
IMFTransform_ProcessMessage
(
node
->
object
.
transform
,
MFT_MESSAGE_COMMAND_FLUSH
,
0
);
break
;
default:
;
}
}
session_set_caps
(
session
,
session
->
caps
&
~
MFSESSIONCAP_PAUSE
);
...
...
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