From: R��mi Bernon rbernon@codeweavers.com
--- dlls/mf/tests/mf.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
diff --git a/dlls/mf/tests/mf.c b/dlls/mf/tests/mf.c index c95e6a0882c..aac4ba8c52e 100644 --- a/dlls/mf/tests/mf.c +++ b/dlls/mf/tests/mf.c @@ -6227,6 +6227,8 @@ static void test_sample_copier(void) return; }
+ winetest_push_context("copier"); + hr = pMFCreateSampleCopierMFT(&copier); ok(hr == S_OK, "Failed to create sample copier, hr %#lx.\n", hr);
@@ -6478,6 +6480,8 @@ static void test_sample_copier(void) ok(ref == 0, "Release returned %ld\n", ref); ref = IMFMediaType_Release(mediatype); ok(ref == 0, "Release returned %ld\n", ref); + + winetest_pop_context(); }
struct sample_metadata @@ -7147,6 +7151,8 @@ static void test_aac_encoder(void) hr = CoInitialize(NULL); ok(hr == S_OK, "Failed to initialize, hr %#lx.\n", hr);
+ winetest_push_context("aacenc"); + if (!create_transform(MFT_CATEGORY_AUDIO_ENCODER, &input_type, &output_type, L"Microsoft AAC Audio Encoder MFT", &MFMediaType_Audio, transform_inputs, ARRAY_SIZE(transform_inputs), transform_outputs, ARRAY_SIZE(transform_outputs), &transform, &CLSID_AACMFTEncoder, &class_id)) @@ -7203,6 +7209,7 @@ static void test_aac_encoder(void) ok(ret == 0, "Release returned %lu\n", ret);
failed: + winetest_pop_context(); CoUninitialize(); }
@@ -7322,6 +7329,8 @@ static void test_aac_decoder(void) hr = CoInitialize(NULL); ok(hr == S_OK, "Failed to initialize, hr %#lx.\n", hr);
+ winetest_push_context("aacdec"); + if (!create_transform(MFT_CATEGORY_AUDIO_DECODER, &input_type, &output_type, L"Microsoft AAC Audio Decoder MFT", &MFMediaType_Audio, transform_inputs, ARRAY_SIZE(transform_inputs), transform_outputs, ARRAY_SIZE(transform_outputs), &transform, &CLSID_MSAACDecMFT, &class_id)) @@ -7458,6 +7467,7 @@ static void test_aac_decoder(void) ok(ret == 0, "Release returned %lu\n", ret);
failed: + winetest_pop_context(); CoUninitialize(); }
@@ -7534,6 +7544,8 @@ static void test_wma_encoder(void) hr = CoInitialize(NULL); ok(hr == S_OK, "Failed to initialize, hr %#lx.\n", hr);
+ winetest_push_context("wmaenc"); + if (!create_transform(MFT_CATEGORY_AUDIO_ENCODER, &input_type, &output_type, L"WMAudio Encoder MFT", &MFMediaType_Audio, transform_inputs, ARRAY_SIZE(transform_inputs), transform_outputs, ARRAY_SIZE(transform_outputs), &transform, &CLSID_CWMAEncMediaObject, &class_id)) @@ -7656,6 +7668,7 @@ static void test_wma_encoder(void) ok(ret == 0, "Release returned %lu\n", ret);
failed: + winetest_pop_context(); CoUninitialize(); }
@@ -7786,6 +7799,8 @@ static void test_wma_decoder(void) hr = CoInitialize(NULL); ok(hr == S_OK, "Failed to initialize, hr %#lx.\n", hr);
+ winetest_push_context("wmadec"); + if (!create_transform(MFT_CATEGORY_AUDIO_DECODER, &input_type, &output_type, L"WMAudio Decoder MFT", &MFMediaType_Audio, transform_inputs, ARRAY_SIZE(transform_inputs), transform_outputs, ARRAY_SIZE(transform_outputs), &transform, &CLSID_CWMADecMediaObject, &class_id)) @@ -8168,6 +8183,7 @@ static void test_wma_decoder(void) ok( ref == 0, "Release returned %lu\n", ref );
failed: + winetest_pop_context(); CoUninitialize(); }
@@ -8425,6 +8441,8 @@ static void test_h264_decoder(void) hr = CoInitialize(NULL); ok(hr == S_OK, "Failed to initialize, hr %#lx.\n", hr);
+ winetest_push_context("h264dec"); + if (!create_transform(MFT_CATEGORY_VIDEO_DECODER, &input_type, &output_type, L"Microsoft H264 Video Decoder MFT", &MFMediaType_Video, transform_inputs, ARRAY_SIZE(transform_inputs), transform_outputs, ARRAY_SIZE(transform_outputs), &transform, &CLSID_MSH264DecoderMFT, &class_id)) @@ -8929,6 +8947,7 @@ static void test_h264_decoder(void) ok(ret == 0, "Release returned %lu\n", ret);
failed: + winetest_pop_context(); CoUninitialize(); }
@@ -9040,6 +9059,8 @@ static void test_audio_convert(void) hr = CoInitialize(NULL); ok(hr == S_OK, "Failed to initialize, hr %#lx.\n", hr);
+ winetest_push_context("resampler"); + if (!create_transform(MFT_CATEGORY_AUDIO_EFFECT, &input_type, &output_type, L"Resampler MFT", &MFMediaType_Audio, transform_inputs, ARRAY_SIZE(transform_inputs), transform_outputs, ARRAY_SIZE(transform_outputs), &transform, &CLSID_CResamplerMediaObject, &class_id)) @@ -9318,6 +9339,7 @@ static void test_audio_convert(void) ok(ret == 0, "Release returned %lu\n", ret);
failed: + winetest_pop_context(); CoUninitialize(); }
@@ -9497,6 +9519,8 @@ static void test_color_convert(void) hr = CoInitialize(NULL); ok(hr == S_OK, "Failed to initialize, hr %#lx.\n", hr);
+ winetest_push_context("colorconv"); + if (!create_transform(MFT_CATEGORY_VIDEO_EFFECT, &input_type, &output_type, L"Color Converter MFT", &MFMediaType_Video, transform_inputs, ARRAY_SIZE(transform_inputs), transform_outputs, ARRAY_SIZE(transform_outputs), &transform, &CLSID_CColorConvertDMO, &class_id)) @@ -9693,6 +9717,7 @@ static void test_color_convert(void) ok(ret == 0, "Release returned %ld\n", ret);
failed: + winetest_pop_context(); CoUninitialize(); }
@@ -9885,6 +9910,8 @@ static void test_video_processor(void) hr = CoInitialize(NULL); ok(hr == S_OK, "Failed to initialize, hr %#lx.\n", hr);
+ winetest_push_context("videoproc"); + if (!create_transform(MFT_CATEGORY_VIDEO_PROCESSOR, &input_type, &output_type, L"Microsoft Video Processor MFT", &MFMediaType_Video, transform_inputs, ARRAY_SIZE(transform_inputs), transform_outputs, ARRAY_SIZE(transform_outputs), &transform, &CLSID_VideoProcessorMFT, &class_id)) @@ -10444,6 +10471,7 @@ skip_output: ok(ret == 0, "Release returned %ld\n", ret);
failed: + winetest_pop_context(); CoUninitialize(); }
@@ -10581,6 +10609,8 @@ static void test_mp3_decoder(void) hr = CoInitialize(NULL); ok(hr == S_OK, "Failed to initialize, hr %#lx.\n", hr);
+ winetest_push_context("mp3dec"); + if (!create_transform(MFT_CATEGORY_AUDIO_DECODER, &input_type, &output_type, L"MP3 Decoder MFT", &MFMediaType_Audio, transform_inputs, ARRAY_SIZE(transform_inputs), transform_outputs, ARRAY_SIZE(transform_outputs), &transform, &CLSID_CMP3DecMediaObject, &class_id)) @@ -10879,6 +10909,7 @@ static void test_mp3_decoder(void) ok(ret == 0, "Release returned %lu\n", ret);
failed: + winetest_pop_context(); CoUninitialize(); }