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
7b47833b
Commit
7b47833b
authored
Apr 03, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/tests: Do not accept MFVideoFormat_RGB32 in the test transform.
parent
79edaed6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
mfplat.c
dlls/mfreadwrite/tests/mfplat.c
+16
-13
No files found.
dlls/mfreadwrite/tests/mfplat.c
View file @
7b47833b
...
...
@@ -2488,6 +2488,13 @@ static HRESULT WINAPI test_decoder_SetInputType(IMFTransform *iface, DWORD id, I
static
HRESULT
WINAPI
test_decoder_SetOutputType
(
IMFTransform
*
iface
,
DWORD
id
,
IMFMediaType
*
type
,
DWORD
flags
)
{
struct
test_decoder
*
decoder
=
test_decoder_from_IMFTransform
(
iface
);
GUID
subtype
;
HRESULT
hr
;
if
(
type
&&
SUCCEEDED
(
hr
=
IMFMediaType_GetGUID
(
type
,
&
MF_MT_SUBTYPE
,
&
subtype
))
&&
IsEqualGUID
(
&
subtype
,
&
MFVideoFormat_RGB32
))
return
MF_E_INVALIDMEDIATYPE
;
if
(
flags
&
MFT_SET_TYPE_TEST_ONLY
)
return
S_OK
;
if
(
decoder
->
output_type
)
...
...
@@ -2900,7 +2907,7 @@ static void test_source_reader_transforms_d3d(void)
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Video
),
ATTR_GUID
(
MF_MT_SUBTYPE
,
MFVideoFormat_RGB32
),
ATTR_RATIO
(
MF_MT_FRAME_SIZE
,
96
,
96
),
ATTR_UINT32
(
MF_MT_ALL_SAMPLES_INDEPENDENT
,
1
,
.
todo
=
TRUE
),
ATTR_UINT32
(
MF_MT_ALL_SAMPLES_INDEPENDENT
,
1
),
ATTR_UINT32
(
MF_MT_COMPRESSED
,
0
,
.
todo
=
TRUE
),
ATTR_UINT32
(
MF_MT_INTERLACE_MODE
,
2
,
.
todo
=
TRUE
),
{
0
},
...
...
@@ -3019,18 +3026,14 @@ static void test_source_reader_transforms_d3d(void)
/* video processor transform is not D3D aware */
hr
=
IMFSourceReaderEx_GetTransformForStream
(
reader_ex
,
0
,
1
,
NULL
,
&
video_processor
);
todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
/* FIXME: Wine skips the video processor as the test decoder accepts the output type directly */
if
(
hr
==
S_OK
)
{
ok
(
video_processor
->
lpVtbl
!=
&
test_decoder_vtbl
,
"got unexpected transform
\n
"
);
hr
=
IMFTransform_GetAttributes
(
video_processor
,
&
attributes
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFAttributes_GetUINT32
(
attributes
,
&
MF_SA_D3D_AWARE
,
&
value
);
ok
(
hr
==
MF_E_ATTRIBUTENOTFOUND
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IMFAttributes_Release
(
attributes
);
IMFTransform_Release
(
video_processor
);
}
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
video_processor
->
lpVtbl
!=
&
test_decoder_vtbl
,
"got unexpected transform
\n
"
);
hr
=
IMFTransform_GetAttributes
(
video_processor
,
&
attributes
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFAttributes_GetUINT32
(
attributes
,
&
MF_SA_D3D_AWARE
,
&
value
);
ok
(
hr
==
MF_E_ATTRIBUTENOTFOUND
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IMFAttributes_Release
(
attributes
);
IMFTransform_Release
(
video_processor
);
hr
=
IMFSourceReaderEx_GetTransformForStream
(
reader_ex
,
0
,
0
,
NULL
,
&
test_decoder
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
...
...
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