Commit d19467a8 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf/evr: Translate EC_DISPLAY_CHANGED notification to MEStreamSinkDeviceChanged events.

parent 98f5112c
......@@ -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;
......
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