From: Conor McCarthy cmccarthy@codeweavers.com
--- dlls/mf/tests/mf.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/dlls/mf/tests/mf.c b/dlls/mf/tests/mf.c index 5c909ae3870..1aff0042267 100644 --- a/dlls/mf/tests/mf.c +++ b/dlls/mf/tests/mf.c @@ -8165,6 +8165,7 @@ static void test_h264_output_alignment(void) grabber_callback = impl_from_IMFSampleGrabberSinkCallback(create_test_grabber_callback()); grabber_callback->ready_event = CreateEventW(NULL, FALSE, FALSE, NULL); ok(!!grabber_callback->ready_event, "CreateEventW failed, error %lu\n", GetLastError()); + trace("1\n");
hr = MFCreateMediaType(&output_type); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); @@ -8172,6 +8173,7 @@ static void test_h264_output_alignment(void) hr = MFCreateSampleGrabberSinkActivate(output_type, &grabber_callback->IMFSampleGrabberSinkCallback_iface, &sink_activate); ok(hr == S_OK, "Failed to create grabber sink, hr %#lx.\n", hr); IMFMediaType_Release(output_type); + trace("2\n");
IMFActivate_ActivateObject(sink_activate, &IID_IMFMediaSink, (void **)&media_sink); hr = IMFMediaSink_GetStreamSinkByIndex(media_sink, 0, &stream_sink); @@ -8184,6 +8186,7 @@ static void test_h264_output_alignment(void) ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); IMFTopology_Release(topology); IMFTopoLoader_Release(topo_loader); + trace("3\n");
hr = IMFStreamSink_GetMediaTypeHandler(stream_sink, &handler); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); @@ -8192,6 +8195,7 @@ static void test_h264_output_alignment(void) hr = IMFMediaType_GetUINT64(output_type, &MF_MT_FRAME_SIZE, &frame_size); ok(hr == MF_E_ATTRIBUTENOTFOUND, "Unexpected hr %#lx.\n", hr); IMFMediaType_Release(output_type); + trace("4\n");
hr = MFCreateMediaSession(NULL, &session); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); @@ -8199,6 +8203,7 @@ static void test_h264_output_alignment(void) ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); transform = topology_get_transform(resolved_topology); IMFTopology_Release(resolved_topology); + trace("5\n");
callback = create_test_callback(TRUE); hr = wait_media_event(session, callback, MESessionTopologySet, 1000, &propvar); @@ -8210,12 +8215,14 @@ static void test_h264_output_alignment(void) hr = IMFMediaEvent_GetUINT32(test_callback->media_event, &MF_EVENT_TOPOLOGY_STATUS, &status); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); ok(status == MF_TOPOSTATUS_READY, "Unexpected status %d.\n", status); + trace("6\n");
frame_size = get_current_media_type_frame_size(transform); todo_wine ok(frame_size == (((UINT64)64 << 32) | 72), "Unexpected frame size %#llx\n", frame_size); frame_size = get_current_media_type_frame_size(handler); ok(frame_size == (((UINT64)64 << 32) | 72), "Unexpected frame size %#llx\n", frame_size); + trace("7\n");
propvar.vt = VT_EMPTY; hr = IMFMediaSession_Start(session, &GUID_NULL, &propvar); @@ -8231,6 +8238,7 @@ static void test_h264_output_alignment(void) ok(frame_size == (((UINT64)64 << 32) | 72), "Unexpected frame size %#llx\n", frame_size); frame_size = get_current_media_type_frame_size(handler); ok(frame_size == (((UINT64)64 << 32) | 72), "Unexpected frame size %#llx\n", frame_size); + trace("8\n");
/* frame size change occurs before MESessionStarted */ hr = wait_media_event(session, callback, MESessionStarted, 5000, &propvar); @@ -8241,6 +8249,7 @@ static void test_h264_output_alignment(void) frame_size = get_current_media_type_frame_size(handler); todo_wine ok(frame_size == (((UINT64)64 << 32) | 80), "Unexpected frame size %#llx\n", frame_size); + trace("9\n");
hr = IMFMediaSession_Stop(session); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); @@ -8248,11 +8257,13 @@ static void test_h264_output_alignment(void) ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); hr = wait_media_event(session, callback, MESessionClosed, 1000, &propvar); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + trace("10\n");
hr = IMFMediaSource_Shutdown(source); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); hr = IMFMediaSession_Shutdown(session); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); + trace("11\n");
IMFMediaTypeHandler_Release(handler); if (transform) @@ -8263,6 +8274,7 @@ static void test_h264_output_alignment(void) IMFMediaSink_Release(media_sink); IMFSampleGrabberSinkCallback_Release(&grabber_callback->IMFSampleGrabberSinkCallback_iface); IMFMediaSource_Release(source); + trace("12\n");
hr = MFShutdown(); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); @@ -8306,5 +8318,7 @@ START_TEST(mf) test_media_session_source_shutdown(); test_media_session_thinning(); test_media_session_seek(); + trace("test_h264_output_alignment\n"); test_h264_output_alignment(); + trace("done\n"); }