From: Brendan McGrath <bmcgrath@codeweavers.com> Windows will only include a media type on a sample if there was a change in media type compared to the last time the buffer was retrieved. --- dlls/amstream/tests/amstream.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/amstream/tests/amstream.c b/dlls/amstream/tests/amstream.c index 8da987a6367..a402a32021d 100644 --- a/dlls/amstream/tests/amstream.c +++ b/dlls/amstream/tests/amstream.c @@ -9077,6 +9077,13 @@ static void test_ddrawstream_mem_allocator(void) hr = IMemAllocator_GetBuffer(mem_allocator, &media_sample1, NULL, NULL, 0); ok(hr == S_OK, "Got hr %#lx.\n", hr); + sample_mt = (AM_MEDIA_TYPE*)0xc0ffee; + hr = IMediaSample_GetMediaType(media_sample1, &sample_mt); + todo_wine + ok(hr == S_FALSE, "Got hr %#lx.\n", hr); + todo_wine + ok(sample_mt == NULL, "Got sample_mt %p.\n", sample_mt); + start = end = 0xdeadbeef; hr = IMediaSample_GetTime(media_sample1, &start, &end); ok(hr == S_OK, "Got hr %#lx.\n", hr); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10583