mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:51:11 +00:00
mf/tests: Test IMediaObject_GetOutputSizeInfo.
This commit is contained in:
parent
33d9310a9f
commit
9c78628f14
|
@ -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];
|
||||
DMO_MEDIA_TYPE *good_output_type, *bad_output_type, *input_type, type;
|
||||
DWORD count, i, ret;
|
||||
DWORD count, i, ret, size, alignment;
|
||||
IMediaObject *dmo;
|
||||
HRESULT hr;
|
||||
|
||||
|
@ -3711,6 +3711,20 @@ static void test_wma_decoder_dmo_output_type(void)
|
|||
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);
|
||||
todo_wine
|
||||
ok(hr == S_OK, "GetInputCurrentType returned %#lx.\n", hr);
|
||||
|
|
Loading…
Reference in a new issue