Commit 693bdc63 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf: Shutdown SAR sink on ShutdownObject().

parent f7bd8143
......@@ -1569,7 +1569,13 @@ failed:
static void sar_shutdown_object(void *user_context, IUnknown *obj)
{
/* FIXME: shut down sink */
IMFMediaSink *sink;
if (SUCCEEDED(IUnknown_QueryInterface(obj, &IID_IMFMediaSink, (void **)&sink)))
{
IMFMediaSink_Shutdown(sink);
IMFMediaSink_Release(sink);
}
}
static void sar_free_private(void *user_context)
......
......@@ -3079,7 +3079,6 @@ todo_wine
ok(hr == S_OK, "Failed to shut down, hr %#x.\n", hr);
hr = IMFMediaSink_GetCharacteristics(sink, &flags);
todo_wine
ok(hr == MF_E_SHUTDOWN, "Unexpected hr %#x.\n", hr);
IMFMediaSink_Release(sink);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment