1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

qasf/dmowrapper: Sync Stop() and Receive() for dmo wrapper filter.

This commit is contained in:
Ziqing Hui 2024-05-24 19:29:13 +08:00 committed by Alexandre Julliard
parent 86de254ecd
commit cce09111df
2 changed files with 2 additions and 1 deletions

View File

@ -703,6 +703,7 @@ static HRESULT dmo_wrapper_cleanup_stream(struct strmbase_filter *iface)
IUnknown_QueryInterface(filter->dmo, &IID_IMediaObject, (void **)&dmo);
EnterCriticalSection(&filter->filter.stream_cs);
for (i = 0; i < filter->source_count; ++i)
{
if (filter->sources[i].pin.pin.peer)
@ -712,6 +713,7 @@ static HRESULT dmo_wrapper_cleanup_stream(struct strmbase_filter *iface)
IMediaObject_Flush(dmo);
IMediaObject_Release(dmo);
LeaveCriticalSection(&filter->filter.stream_cs);
return S_OK;
}

View File

@ -1740,7 +1740,6 @@ static void test_sample_processing(IMediaControl *control, IMemInputPin *input,
stop_thread = CreateThread(NULL, 0, stop_filter_proc, dmo_filter, 0, NULL);
ok(!!stop_thread, "CreateThread returned NULL thread.\n");
ret = WaitForSingleObject(stop_thread, 200);
todo_wine
ok(ret == WAIT_TIMEOUT, "WaitForSingleObject returned %#lx.\n", ret);
/* Signal event to end Receive(). */
SetEvent(testsink->event);