Module: wine Branch: master Commit: d748440ea27dc7456ffa98ee76b0cb9302226583 URL: https://gitlab.winehq.org/wine/wine/-/commit/d748440ea27dc7456ffa98ee76b0cb9...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Dec 11 09:39:41 2023 +0100
mf/tests: Workaround broken Win7 test_h264_decoder_concat_streams result.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55638
---
dlls/mf/tests/transform.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/mf/tests/transform.c b/dlls/mf/tests/transform.c index e228dcf12ac..f9e6b3b45cd 100644 --- a/dlls/mf/tests/transform.c +++ b/dlls/mf/tests/transform.c @@ -4677,7 +4677,14 @@ static void test_h264_decoder_concat_streams(void)
hr = IMFCollection_GetElementCount(output_samples, &output_count); ok(hr == S_OK, "GetElementCount returned %#lx\n", hr); - ok(output_count == 96, "GetElementCount returned %#lx\n", output_count); + ok(output_count == 96 || broken(output_count == 120) /* Win7 sometimes */, "GetElementCount returned %lu\n", output_count); + while (broken(output_count > 96)) /* Win7 sometimes */ + { + IMFSample *sample; + hr = IMFCollection_RemoveElement(output_samples, --output_count, (IUnknown **)&sample); + ok(hr == S_OK, "GetElementCount returned %#lx\n", hr); + IMFSample_Release(sample); + }
ret = check_mf_sample_collection(output_samples, output_sample_desc, NULL); ok(ret == 0, "got %lu%% diff\n", ret);