mf/evr: Trigger media type negotiation through presenter for reference stream.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-10-13 15:26:45 +03:00 committed by Alexandre Julliard
parent 4bdaeaeb48
commit 421924ae0a
1 changed files with 2 additions and 0 deletions

View File

@ -419,6 +419,8 @@ static HRESULT WINAPI video_stream_typehandler_SetCurrentMediaType(IMFMediaTypeH
return MF_E_STREAMSINK_REMOVED;
hr = IMFTransform_SetInputType(stream->parent->mixer, stream->id, type, 0);
if (SUCCEEDED(hr) && !stream->id)
hr = IMFVideoPresenter_ProcessMessage(stream->parent->presenter, MFVP_MESSAGE_INVALIDATEMEDIATYPE, 0);
return hr;
}