[PATCH 4/4] mf/evr: Translate EC_DISPLAY_CHANGED notification to MEStreamSinkDeviceChanged events.
Nikolay Sivov
nsivov at codeweavers.com
Mon Nov 23 08:34:37 CST 2020
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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;
--
2.29.2
More information about the wine-devel
mailing list