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
deda3f81
Commit
deda3f81
authored
Dec 01, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/topoloader: Set MF_TOPONODE_MEDIASTART for all source nodes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
902af3d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
mf.c
dlls/mf/tests/mf.c
+8
-0
topology.c
dlls/mf/topology.c
+7
-1
No files found.
dlls/mf/tests/mf.c
View file @
deda3f81
...
...
@@ -2136,6 +2136,7 @@ static void test_topology_loader_evr(void)
IMFTopoLoader
*
loader
;
IMFMediaSink
*
sink
;
WORD
node_count
;
UINT64
value64
;
HWND
window
;
HRESULT
hr
;
...
...
@@ -2232,6 +2233,13 @@ todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
!
value
,
"Unexpected stream id %u.
\n
"
,
value
);
}
else
if
(
node_type
==
MF_TOPOLOGY_SOURCESTREAM_NODE
)
{
value64
=
1
;
hr
=
IMFTopologyNode_GetUINT64
(
node
,
&
MF_TOPONODE_MEDIASTART
,
&
value64
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
!
value64
,
"Unexpected value.
\n
"
);
}
}
IMFTopology_Release
(
full_topology
);
...
...
dlls/mf/topology.c
View file @
deda3f81
...
...
@@ -2380,10 +2380,16 @@ static void topology_loader_resolve_complete(struct topoloader_context *context)
if
(
node_type
==
MF_TOPOLOGY_OUTPUT_NODE
)
{
/*
Make sure MF_TOPONODE_STREAMID is set
for all outputs. */
/*
Set MF_TOPONODE_STREAMID
for all outputs. */
if
(
FAILED
(
IMFTopologyNode_GetItem
(
node
,
&
MF_TOPONODE_STREAMID
,
NULL
)))
IMFTopologyNode_SetUINT32
(
node
,
&
MF_TOPONODE_STREAMID
,
0
);
}
else
if
(
node_type
==
MF_TOPOLOGY_SOURCESTREAM_NODE
)
{
/* Set MF_TOPONODE_MEDIASTART for all sources. */
if
(
FAILED
(
IMFTopologyNode_GetItem
(
node
,
&
MF_TOPONODE_MEDIASTART
,
NULL
)))
IMFTopologyNode_SetUINT64
(
node
,
&
MF_TOPONODE_MEDIASTART
,
0
);
}
IMFTopologyNode_Release
(
node
);
}
...
...
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