Commit 8511670b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplat/tests: Add some more tests for IsCompressedFormat().

parent 800103d1
...@@ -993,14 +993,28 @@ if(0) ...@@ -993,14 +993,28 @@ if(0)
ok(hr == S_OK, "Failed to get media type property, hr %#x.\n", hr); ok(hr == S_OK, "Failed to get media type property, hr %#x.\n", hr);
ok(compressed, "Unexpected value %d.\n", compressed); ok(compressed, "Unexpected value %d.\n", compressed);
hr = IMFMediaType_SetUINT32(mediatype, &MF_MT_COMPRESSED, 0);
ok(hr == S_OK, "Failed to set attribute, hr %#x.\n", hr);
compressed = FALSE;
hr = IMFMediaType_IsCompressedFormat(mediatype, &compressed);
ok(hr == S_OK, "Failed to get media type property, hr %#x.\n", hr);
ok(compressed, "Unexpected value %d.\n", compressed);
hr = IMFMediaType_SetUINT32(mediatype, &MF_MT_ALL_SAMPLES_INDEPENDENT, 1); hr = IMFMediaType_SetUINT32(mediatype, &MF_MT_ALL_SAMPLES_INDEPENDENT, 1);
ok(hr == S_OK, "Failed to set attribute, hr %#x.\n", hr); ok(hr == S_OK, "Failed to set attribute, hr %#x.\n", hr);
hr = IMFMediaType_SetUINT32(mediatype, &MF_MT_COMPRESSED, 1);
ok(hr == S_OK, "Failed to set attribute, hr %#x.\n", hr);
compressed = TRUE; compressed = TRUE;
hr = IMFMediaType_IsCompressedFormat(mediatype, &compressed); hr = IMFMediaType_IsCompressedFormat(mediatype, &compressed);
ok(hr == S_OK, "Failed to get media type property, hr %#x.\n", hr); ok(hr == S_OK, "Failed to get media type property, hr %#x.\n", hr);
ok(!compressed, "Unexpected value %d.\n", compressed); ok(!compressed, "Unexpected value %d.\n", compressed);
hr = IMFMediaType_DeleteItem(mediatype, &MF_MT_COMPRESSED);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
hr = IMFMediaType_SetGUID(mediatype, &MF_MT_MAJOR_TYPE, &MFMediaType_Video); hr = IMFMediaType_SetGUID(mediatype, &MF_MT_MAJOR_TYPE, &MFMediaType_Video);
ok(hr == S_OK, "Failed to set GUID value, hr %#x.\n", hr); ok(hr == S_OK, "Failed to set GUID value, hr %#x.\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