Skip to content

Raise METranformDrainComplete event in CHWMFT::OnDrain - #227

Open
April (linnealovespie) wants to merge 1 commit into
microsoft:mainfrom
linnealovespie:main
Open

Raise METranformDrainComplete event in CHWMFT::OnDrain#227
April (linnealovespie) wants to merge 1 commit into
microsoft:mainfrom
linnealovespie:main

Conversation

@linnealovespie

Copy link
Copy Markdown

Currently CHWMFT::OnDrain doesn't raise an METransformDrainComplete event when done processing all output samples, as described in the Asynchronous MFT documentation.

hr = pDrainCompleteEvent->SetUINT32(MF_EVENT_MFT_INPUT_STREAM_ID, 0);
if (FAILED(hr))
{
break;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should also be another SAFERELEASE(pDrainCompleteEvent); if this SetUINT32 method fails to prevent a memory leak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants