mf/evr: Handle user events from the presenter.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-11-11 16:36:47 +03:00 committed by Alexandre Julliard
parent d493ba166e
commit d2ce23f461
1 changed files with 9 additions and 0 deletions

View File

@ -1743,6 +1743,15 @@ static HRESULT WINAPI video_renderer_event_sink_Notify(IMediaEventSink *iface, L
MEStreamSinkRequestSample, &GUID_NULL, S_OK, NULL); MEStreamSinkRequestSample, &GUID_NULL, S_OK, NULL);
} }
} }
else if (event >= EC_USER)
{
PROPVARIANT code;
code.vt = VT_I4;
code.lVal = event;
hr = IMFMediaEventQueue_QueueEventParamVar(renderer->event_queue, MERendererEvent,
&GUID_NULL, S_OK, &code);
}
else else
{ {
WARN("Unhandled event %d.\n", event); WARN("Unhandled event %d.\n", event);