mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 21:27:19 +00:00
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);
|
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)
|
else if (event >= EC_USER)
|
||||||
{
|
{
|
||||||
PROPVARIANT code;
|
PROPVARIANT code;
|
||||||
|
|
Loading…
Reference in a new issue