Nikolay Sivov (@nsivov) commented about dlls/mf/tests/mf.c:
+ input_sample = create_h264_sample(h264_data, h264_data_size); + hr = IMFSample_SetSampleTime(input_sample, 0); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + hr = IMFSample_SetSampleDuration(input_sample, 10000000); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + hr = IMFStreamSink_ProcessSample(stream_sink, input_sample); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + + /* Finalize media sink. */ + hr = IMFPresentationClock_Stop(clock); + ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + WaitForSingleObject(stream_event_callback.stop_event, 3000); + + finalize_callback.IMFAsyncCallback_iface.lpVtbl = &test_media_sink_callback_finalize_vtbl; + finalize_callback.finalize_event = CreateEventW(NULL, FALSE, FALSE, NULL); + finalize_callback.media_sink = media_sink; This should be in some helper if we need this at all.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3369#note_39783