mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 10:17:17 +00:00
mfreadwrite/tests: Shutdown the test stream event queues on source shutdown.
This commit is contained in:
parent
c908181eef
commit
8514ddb200
|
@ -554,9 +554,15 @@ static HRESULT WINAPI test_source_Shutdown(IMFMediaSource *iface)
|
|||
{
|
||||
struct test_source *source = impl_from_IMFMediaSource(iface);
|
||||
HRESULT hr;
|
||||
UINT i;
|
||||
|
||||
hr = IMFMediaEventQueue_Shutdown(source->event_queue);
|
||||
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
||||
for (i = 0; i < source->stream_count; ++i)
|
||||
{
|
||||
hr = IMFMediaEventQueue_Shutdown(source->streams[i]->event_queue);
|
||||
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue