Commit 9c78628f authored by Alfred Agrell's avatar Alfred Agrell Committed by Alexandre Julliard

mf/tests: Test IMediaObject_GetOutputSizeInfo.

parent 33d9310a
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment