mfreadwrite: Clear STREAM_FLAG_SAMPLE_REQUESTED flag on MEEndOfStream event.

Signed-off-by: Derek Lesho <dlesho@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Derek Lesho 2020-04-16 16:30:51 -05:00 committed by Alexandre Julliard
parent e570c2fe59
commit a2794b5eae
1 changed files with 1 additions and 0 deletions

View File

@ -727,6 +727,7 @@ static HRESULT source_reader_media_stream_state_handler(struct source_reader *re
{
case MEEndOfStream:
stream->state = STREAM_STATE_EOS;
stream->flags &= ~STREAM_FLAG_SAMPLE_REQUESTED;
if (stream->decoder && SUCCEEDED(IMFTransform_ProcessMessage(stream->decoder,
MFT_MESSAGE_COMMAND_DRAIN, 0)))