mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 07:24:07 +00:00
mf/tests: Add some winetest context to MFT tests.
This commit is contained in:
parent
db56d2f2a3
commit
66ad83bd55
|
@ -351,6 +351,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);
|
||||
|
||||
|
@ -602,6 +604,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
|
||||
|
@ -958,6 +962,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))
|
||||
|
@ -1080,6 +1086,7 @@ static void test_wma_encoder(void)
|
|||
ok(ret == 0, "Release returned %lu\n", ret);
|
||||
|
||||
failed:
|
||||
winetest_pop_context();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
|
@ -1210,6 +1217,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))
|
||||
|
@ -1592,6 +1601,7 @@ static void test_wma_decoder(void)
|
|||
ok( ref == 0, "Release returned %lu\n", ref );
|
||||
|
||||
failed:
|
||||
winetest_pop_context();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
|
@ -1849,6 +1859,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))
|
||||
|
@ -2353,6 +2365,7 @@ static void test_h264_decoder(void)
|
|||
ok(ret == 0, "Release returned %lu\n", ret);
|
||||
|
||||
failed:
|
||||
winetest_pop_context();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
|
@ -2464,6 +2477,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))
|
||||
|
@ -2742,6 +2757,7 @@ static void test_audio_convert(void)
|
|||
ok(ret == 0, "Release returned %lu\n", ret);
|
||||
|
||||
failed:
|
||||
winetest_pop_context();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
|
@ -2921,6 +2937,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))
|
||||
|
@ -3117,6 +3135,7 @@ static void test_color_convert(void)
|
|||
ok(ret == 0, "Release returned %ld\n", ret);
|
||||
|
||||
failed:
|
||||
winetest_pop_context();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
|
@ -3309,6 +3328,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))
|
||||
|
@ -3867,6 +3888,7 @@ skip_output:
|
|||
ok(ret == 0, "Release returned %ld\n", ret);
|
||||
|
||||
failed:
|
||||
winetest_pop_context();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
|
@ -4004,6 +4026,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))
|
||||
|
@ -4302,6 +4326,7 @@ static void test_mp3_decoder(void)
|
|||
ok(ret == 0, "Release returned %lu\n", ret);
|
||||
|
||||
failed:
|
||||
winetest_pop_context();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue