Module: wine Branch: master Commit: d19467a8b3b2aed880cd6215b6dce47bf651e5d0 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d19467a8b3b2aed880cd6215b...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Nov 23 17:34:37 2020 +0300
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
---
dlls/mf/evr.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/mf/evr.c b/dlls/mf/evr.c index 47a506a94c6..3479bade251 100644 --- a/dlls/mf/evr.c +++ b/dlls/mf/evr.c @@ -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;