mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:53:45 +00:00
qasf/dmowrapper: Sync Stop() and Receive() for dmo wrapper filter.
This commit is contained in:
parent
86de254ecd
commit
cce09111df
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue