On Sat Dec 2 01:04:50 2023 +0000, Alfred Agrell wrote:
changed this line in [version 9 of the diff](/wine/wine/-/merge_requests/4449/diffs?diff_id=87612&start_sha=25fe1583fbaba1798f2cd3700bbf546ba82d8263#17848a3145bd1a5c42dd4b7f68c6ad9e56f0804a_1941_1951)
I don't like messing with compare_media_types(), though. It should be possible to add the lines I mentioned *before* calling compare_media_types(). I.e. test_stream_output_type() would look like this:
``` hr = IWMMediaProps_GetMediaType(media_props, mt, &ret_size); ok(hr == S_OK, "Got hr %#lx.\n", hr); if (IsEqualGUID(&expected->subtype, &MEDIASUBTYPE_WMV1)) { const VIDEOINFOHEADER *expect_vih = (const void *)expected->pbFormat; VIDEOINFOHEADER *vih = (void *)mt->pbFormat; todo_wine ok(vih->dwBitRate == expect_vih->dwBitRate, "Expected bit rate %lu, got %lu.\n", expect_vih->dwBitRate, vih->dwBitRate); vih->dwBitRate = expect_vih->dwBitRate; } ok(compare_media_types(mt, expected), "Media types didn't match.\n"); ```