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:
parent
98f5112c1a
commit
d19467a8b3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user