Zebediah Figura (@zfigura) commented about dlls/wmvcore/tests/wmvcore.c:
- ok(hr == S_OK, "Got hr %#lx.\n", hr);
- test_stream_output_type(profile, 1, &mt);
- test_stream_output_type(profile, 2, &mt_msaudio1);
- while (video_idx < 50 || audio_idx < 44)
- {
DWORD next_video_time = 460000 + video_idx * 400000;
DWORD next_audio_time = audio_sample_times[audio_idx];
sample_duration = 1234;
hr = IWMSyncReader_GetNextSample(reader, 0, &sample, &sample_time, &sample_duration, &flags, NULL, &stream_num);
ok(hr == S_OK, "%lu/%lu: Got hr %#lx.\n", video_idx, audio_idx, hr);
/* we don't care about the buffer, but GetLength is unimplemented in Wine */
hr = INSSBuffer_GetBufferAndLength(sample, &data, &bytes_count);
ok(hr == S_OK, "%lu/%lu: Got hr %#lx.\n", video_idx, audio_idx, hr);
We have a winetest_push_context() that takes care of the prefix. See its use in e.g. test_async_reader_types().