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
9c78628f
Commit
9c78628f
authored
Nov 20, 2023
by
Alfred Agrell
Committed by
Alexandre Julliard
Nov 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Test IMediaObject_GetOutputSizeInfo.
parent
33d9310a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
transform.c
dlls/mf/tests/transform.c
+15
-1
No files found.
dlls/mf/tests/transform.c
View file @
9c78628f
...
@@ -3534,7 +3534,7 @@ static void test_wma_decoder_dmo_output_type(void)
...
@@ -3534,7 +3534,7 @@ static void test_wma_decoder_dmo_output_type(void)
char
buffer_good_output
[
1024
],
buffer_bad_output
[
1024
],
buffer_input
[
1024
];
char
buffer_good_output
[
1024
],
buffer_bad_output
[
1024
],
buffer_input
[
1024
];
DMO_MEDIA_TYPE
*
good_output_type
,
*
bad_output_type
,
*
input_type
,
type
;
DMO_MEDIA_TYPE
*
good_output_type
,
*
bad_output_type
,
*
input_type
,
type
;
DWORD
count
,
i
,
ret
;
DWORD
count
,
i
,
ret
,
size
,
alignment
;
IMediaObject
*
dmo
;
IMediaObject
*
dmo
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -3711,6 +3711,20 @@ static void test_wma_decoder_dmo_output_type(void)
...
@@ -3711,6 +3711,20 @@ static void test_wma_decoder_dmo_output_type(void)
MoFreeMediaType
(
&
type
);
MoFreeMediaType
(
&
type
);
}
}
/* Test GetOutputSizeInfo. */
hr
=
IMediaObject_GetOutputSizeInfo
(
dmo
,
1
,
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"GetOutputSizeInfo returned %#lx.
\n
"
,
hr
);
hr
=
IMediaObject_GetOutputSizeInfo
(
dmo
,
0
,
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"GetOutputSizeInfo returned %#lx.
\n
"
,
hr
);
hr
=
IMediaObject_GetOutputSizeInfo
(
dmo
,
0
,
&
size
,
NULL
);
ok
(
hr
==
E_POINTER
,
"GetOutputSizeInfo returned %#lx.
\n
"
,
hr
);
hr
=
IMediaObject_GetOutputSizeInfo
(
dmo
,
0
,
NULL
,
&
alignment
);
ok
(
hr
==
E_POINTER
,
"GetOutputSizeInfo returned %#lx.
\n
"
,
hr
);
hr
=
IMediaObject_GetOutputSizeInfo
(
dmo
,
0
,
&
size
,
&
alignment
);
ok
(
hr
==
S_OK
,
"GetOutputSizeInfo returned %#lx.
\n
"
,
hr
);
ok
(
size
==
8192
,
"Unexpected size %lu.
\n
"
,
size
);
ok
(
alignment
==
1
,
"Unexpected alignment %lu.
\n
"
,
alignment
);
hr
=
IMediaObject_GetInputCurrentType
(
dmo
,
0
,
input_type
);
hr
=
IMediaObject_GetInputCurrentType
(
dmo
,
0
,
input_type
);
todo_wine
todo_wine
ok
(
hr
==
S_OK
,
"GetInputCurrentType returned %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetInputCurrentType returned %#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