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
b843ec9f
Commit
b843ec9f
authored
Nov 02, 2022
by
Bernhard Kölbl
Committed by
Alexandre Julliard
Nov 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Test for copier node in topology using evr.
parent
49d87a5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
mf.c
dlls/mf/tests/mf.c
+34
-2
No files found.
dlls/mf/tests/mf.c
View file @
b843ec9f
...
@@ -3581,19 +3581,51 @@ static void test_topology_loader_evr(void)
...
@@ -3581,19 +3581,51 @@ static void test_topology_loader_evr(void)
hr
=
IMFTopologyNode_GetNodeType
(
node
,
&
node_type
);
hr
=
IMFTopologyNode_GetNodeType
(
node
,
&
node_type
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
if
(
node_type
==
MF_TOPOLOGY_OUTPUT_NODE
)
switch
(
node_type
)
{
case
MF_TOPOLOGY_OUTPUT_NODE
:
{
{
value
=
1
;
value
=
1
;
hr
=
IMFTopologyNode_GetUINT32
(
node
,
&
MF_TOPONODE_STREAMID
,
&
value
);
hr
=
IMFTopologyNode_GetUINT32
(
node
,
&
MF_TOPONODE_STREAMID
,
&
value
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
value
,
"Unexpected stream id %u.
\n
"
,
value
);
ok
(
!
value
,
"Unexpected stream id %u.
\n
"
,
value
);
break
;
}
}
else
if
(
node_type
==
MF_TOPOLOGY_SOURCESTREAM_NODE
)
case
MF_TOPOLOGY_TRANSFORM_NODE
:
{
IMFAttributes
*
attrs
;
IMFTransform
*
copier
;
IUnknown
*
obj
;
hr
=
IMFTopologyNode_GetObject
(
node
,
(
IUnknown
**
)
&
obj
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
obj
,
&
IID_IMFTransform
,
(
void
**
)
&
copier
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFTransform_GetAttributes
(
copier
,
&
attrs
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
value
=
0xdeadbeef
;
hr
=
IMFAttributes_GetUINT32
(
attrs
,
&
MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE
,
&
value
);
ok
(
value
==
1
,
"Unexpected dynamic state support state %u.
\n
"
,
value
);
IMFAttributes_Release
(
attrs
);
IMFTransform_Release
(
copier
);
IUnknown_Release
(
obj
);
break
;
}
case
MF_TOPOLOGY_SOURCESTREAM_NODE
:
{
{
value64
=
1
;
value64
=
1
;
hr
=
IMFTopologyNode_GetUINT64
(
node
,
&
MF_TOPONODE_MEDIASTART
,
&
value64
);
hr
=
IMFTopologyNode_GetUINT64
(
node
,
&
MF_TOPONODE_MEDIASTART
,
&
value64
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
value64
,
"Unexpected value.
\n
"
);
ok
(
!
value64
,
"Unexpected value.
\n
"
);
break
;
}
default:
ok
(
0
,
"Got unexpected node type %u.
\n
"
,
node_type
);
break
;
}
}
IMFTopologyNode_Release
(
node
);
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