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
9d1c7692
Commit
9d1c7692
authored
Nov 17, 2022
by
Ziqing Hui
Committed by
Alexandre Julliard
Nov 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Test IMediaObject_GetStreamCount for WMV decoder.
parent
aad791e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
transform.c
dlls/mf/tests/transform.c
+52
-0
No files found.
dlls/mf/tests/transform.c
View file @
9d1c7692
...
...
@@ -4475,6 +4475,57 @@ failed:
CoUninitialize
();
}
static
void
test_wmv_decoder_media_object
(
void
)
{
const
GUID
*
const
class_id
=
&
CLSID_CWMVDecMediaObject
;
IMediaObject
*
media_object
;
DWORD
in_count
,
out_count
;
HRESULT
hr
;
ULONG
ret
;
winetest_push_context
(
"wmvdec"
);
if
(
!
has_video_processor
)
{
win_skip
(
"Skipping inconsistent WMV decoder media object tests on Win7.
\n
"
);
winetest_pop_context
();
return
;
}
hr
=
CoInitialize
(
NULL
);
ok
(
hr
==
S_OK
,
"CoInitialize failed, hr %#lx.
\n
"
,
hr
);
hr
=
CoCreateInstance
(
class_id
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IMediaObject
,
(
void
**
)
&
media_object
);
ok
(
hr
==
S_OK
,
"CoCreateInstance returned %#lx.
\n
"
,
hr
);
/* Test GetStreamCount. */
in_count
=
out_count
=
0xdeadbeef
;
hr
=
IMediaObject_GetStreamCount
(
media_object
,
&
in_count
,
&
out_count
);
todo_wine
ok
(
hr
==
S_OK
,
"GetStreamCount returned %#lx.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
in_count
==
1
,
"Got unexpected in_count %lu.
\n
"
,
in_count
);
ok
(
out_count
==
1
,
"Got unexpected in_count %lu.
\n
"
,
out_count
);
}
/* Test GetStreamCount with invalid arguments. */
in_count
=
out_count
=
0xdeadbeef
;
hr
=
IMediaObject_GetStreamCount
(
media_object
,
NULL
,
&
out_count
);
todo_wine
ok
(
hr
==
E_POINTER
,
"GetStreamCount returned %#lx.
\n
"
,
hr
);
ok
(
out_count
==
0xdeadbeef
,
"Got unexpected out_count %lu.
\n
"
,
out_count
);
hr
=
IMediaObject_GetStreamCount
(
media_object
,
&
in_count
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"GetStreamCount returned %#lx.
\n
"
,
hr
);
ok
(
in_count
==
0xdeadbeef
,
"Got unexpected in_count %lu.
\n
"
,
in_count
);
ret
=
IMediaObject_Release
(
media_object
);
ok
(
ret
==
0
,
"Release returned %lu
\n
"
,
ret
);
CoUninitialize
();
winetest_pop_context
();
}
static
void
test_color_convert
(
void
)
{
const
GUID
*
const
class_id
=
&
CLSID_CColorConvertDMO
;
...
...
@@ -5776,6 +5827,7 @@ START_TEST(transform)
test_h264_decoder
();
test_wmv_encoder
();
test_wmv_decoder
();
test_wmv_decoder_media_object
();
test_audio_convert
();
test_color_convert
();
test_video_processor
();
...
...
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