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
065a3432
Commit
065a3432
authored
Aug 29, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Test that IMFTopoLoader_Load doesn't set output nodes media types.
parent
a4538ef5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
mf.c
dlls/mf/tests/mf.c
+18
-4
No files found.
dlls/mf/tests/mf.c
View file @
065a3432
...
...
@@ -1532,6 +1532,8 @@ static void test_sequencer_source(void)
struct
test_handler
{
IMFMediaTypeHandler
IMFMediaTypeHandler_iface
;
ULONG
set_current_count
;
IMFMediaType
*
current_type
;
IMFMediaType
*
invalid_type
;
...
...
@@ -1619,9 +1621,13 @@ static HRESULT WINAPI test_handler_GetMediaTypeByIndex(IMFMediaTypeHandler *ifac
static
HRESULT
WINAPI
test_handler_SetCurrentMediaType
(
IMFMediaTypeHandler
*
iface
,
IMFMediaType
*
media_type
)
{
/* FIXME: Wine sets downstream media type when resolving topology, native doesn't */
todo_wine
ok
(
0
,
"Unexpected call.
\n
"
);
struct
test_handler
*
impl
=
impl_from_IMFMediaTypeHandler
(
iface
);
if
(
impl
->
current_type
)
IMFMediaType_Release
(
impl
->
current_type
);
IMFMediaType_AddRef
((
impl
->
current_type
=
media_type
));
impl
->
set_current_count
++
;
return
S_OK
;
}
...
...
@@ -2871,10 +2877,11 @@ static void test_topology_loader(void)
init_media_type
(
input_type
,
*
test
->
input_type
,
-
1
);
init_media_type
(
output_type
,
*
test
->
output_type
,
-
1
);
handler
.
set_current_count
=
0
;
if
(
test
->
flags
&
LOADER_NO_CURRENT_OUTPUT
)
handler
.
current_type
=
NULL
;
else
handler
.
current_type
=
output_type
;
IMFMediaType_AddRef
((
handler
.
current_type
=
output_type
))
;
if
(
test
->
flags
&
LOADER_SET_INVALID_INPUT
)
handler
.
invalid_type
=
input_type
;
...
...
@@ -3057,6 +3064,13 @@ todo_wine {
else
ok
(
!
handler
.
enum_count
,
"got %lu GetMediaTypeByIndex
\n
"
,
handler
.
enum_count
);
todo_wine_if
((
test
->
flags
&
LOADER_NO_CURRENT_OUTPUT
)
&&
!
(
test
->
flags
&
LOADER_SET_MEDIA_TYPES
))
ok
(
!
handler
.
set_current_count
,
"got %lu SetCurrentMediaType
\n
"
,
handler
.
set_current_count
);
if
(
handler
.
current_type
)
IMFMediaType_Release
(
handler
.
current_type
);
handler
.
current_type
=
NULL
;
hr
=
IMFTopologyNode_SetUnknown
(
src_node
,
&
MF_TOPONODE_SOURCE
,
NULL
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFTopologyNode_SetUnknown
(
src_node
,
&
MF_TOPONODE_STREAM_DESCRIPTOR
,
NULL
);
...
...
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