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:
parent
d493ba166e
commit
d2ce23f461
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue