mf: Add async command for stopping the session.

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-04 14:42:44 +03:00 committed by Alexandre Julliard
parent b91a701c52
commit 3471b779a5
1 changed files with 13 additions and 2 deletions

View File

@ -39,6 +39,7 @@ enum session_command
SESSION_CMD_SET_TOPOLOGY,
SESSION_CMD_START,
SESSION_CMD_PAUSE,
SESSION_CMD_STOP,
};
struct session_op
@ -736,9 +737,19 @@ static HRESULT WINAPI mfsession_Pause(IMFMediaSession *iface)
static HRESULT WINAPI mfsession_Stop(IMFMediaSession *iface)
{
FIXME("(%p)\n", iface);
struct media_session *session = impl_from_IMFMediaSession(iface);
struct session_op *op;
HRESULT hr;
return E_NOTIMPL;
TRACE("%p.\n", iface);
if (FAILED(hr = create_session_op(SESSION_CMD_STOP, &op)))
return hr;
hr = session_submit_command(session, op);
IUnknown_Release(&op->IUnknown_iface);
return hr;
}
static HRESULT WINAPI mfsession_Close(IMFMediaSession *iface)