mf/evr: Translate EC_DISPLAY_CHANGED notification to MEStreamSinkDeviceChanged events.

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-23 17:34:37 +03:00 committed by Alexandre Julliard
parent 98f5112c1a
commit d19467a8b3

View file

@ -2137,6 +2137,12 @@ static HRESULT WINAPI video_renderer_event_sink_Notify(IMediaEventSink *iface, L
MEStreamSinkRequestSample, &GUID_NULL, S_OK, NULL);
}
}
else if (event == EC_DISPLAY_CHANGED)
{
for (idx = 0; idx < renderer->stream_count; ++idx)
IMFMediaEventQueue_QueueEventParamVar(renderer->streams[idx]->event_queue,
MEStreamSinkDeviceChanged, &GUID_NULL, S_OK, NULL);
}
else if (event >= EC_USER)
{
PROPVARIANT code;