mf/tests: Use separate session instance for events tests.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2019-10-08 15:58:54 +03:00 committed by Alexandre Julliard
parent 30cf1bef0f
commit 34c52b946a
1 changed files with 8 additions and 2 deletions

View File

@ -1041,8 +1041,6 @@ todo_wine
IMFGetService_Release(gs);
test_session_events(session);
IMFMediaSession_Release(session);
hr = MFCreateMediaSession(NULL, &session);
@ -1077,6 +1075,14 @@ todo_wine
IMFAttributes_Release(attributes);
/* Basic events behavior. */
hr = MFCreateMediaSession(NULL, &session);
ok(hr == S_OK, "Failed to create media session, hr %#x.\n", hr);
test_session_events(session);
IMFMediaSession_Release(session);
hr = MFShutdown();
ok(hr == S_OK, "Shutdown failure, hr %#x.\n", hr);
}