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
ffba650a
Commit
ffba650a
authored
Jul 18, 2023
by
Bernhard Kölbl
Committed by
Alexandre Julliard
Aug 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfmediaengine/tests: Add tests for RemoveAllEffects().
Signed-off-by:
Bernhard Kölbl
<
bkoelbl@codeweavers.com
>
parent
d19af88f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
mfmediaengine.c
dlls/mfmediaengine/tests/mfmediaengine.c
+23
-0
No files found.
dlls/mfmediaengine/tests/mfmediaengine.c
View file @
ffba650a
...
...
@@ -1828,6 +1828,9 @@ static void test_effect(void)
hr
=
ID3D11Device_CreateTexture2D
(
device
,
&
desc
,
NULL
,
&
texture
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFMediaEngineEx_RemoveAllEffects
(
media_engine_ex
);
todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
passthrough_mft_create
(
0
,
&
video_effect
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
...
...
@@ -1842,6 +1845,22 @@ static void test_effect(void)
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
EXPECT_REF
(
&
video_effect2
->
IMFTransform_iface
,
2
);
hr
=
IMFMediaEngineEx_RemoveAllEffects
(
media_engine_ex
);
todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine
EXPECT_REF
(
&
video_effect
->
IMFTransform_iface
,
1
);
todo_wine
EXPECT_REF
(
&
video_effect2
->
IMFTransform_iface
,
1
);
if
(
FAILED
(
hr
))
/* Temporary skip */
goto
done
;
hr
=
IMFMediaEngineEx_InsertVideoEffect
(
media_engine_ex
,
(
IUnknown
*
)
&
video_effect
->
IMFTransform_iface
,
FALSE
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine
EXPECT_REF
(
&
video_effect
->
IMFTransform_iface
,
2
);
hr
=
IMFMediaEngineEx_InsertVideoEffect
(
media_engine_ex
,
(
IUnknown
*
)
&
video_effect2
->
IMFTransform_iface
,
FALSE
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
todo_wine
EXPECT_REF
(
&
video_effect2
->
IMFTransform_iface
,
2
);
hr
=
passthrough_mft_create
(
0
,
&
audio_effect
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
...
...
@@ -1890,6 +1909,10 @@ done:
if
(
media_engine_ex
)
{
IMFMediaEngineEx_Shutdown
(
media_engine_ex
);
hr
=
IMFMediaEngineEx_RemoveAllEffects
(
media_engine_ex
);
todo_wine
ok
(
hr
==
MF_E_SHUTDOWN
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IMFMediaEngineEx_Release
(
media_engine_ex
);
}
...
...
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