Skip to content
Snippets Groups Projects
Commit 37e7fa05 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

mft: send messages when we're done with the MFT

parent b9e2ec07
No related branches found
No related tags found
1 merge request!1217mft: add Direct3D11 output support
......@@ -1103,8 +1103,13 @@ static void DestroyMFT(decoder_t *p_dec)
{
IMFSample_RemoveAllBuffers(p_sys->output_sample);
}
if (p_sys->mft)
{
IMFTransform_ProcessMessage(p_sys->mft, MFT_MESSAGE_NOTIFY_END_OF_STREAM, (ULONG_PTR)0);
IMFTransform_ProcessMessage(p_sys->mft, MFT_MESSAGE_NOTIFY_END_STREAMING, (ULONG_PTR)0);
IMFTransform_Release(p_sys->mft);
}
if (p_dec->fmt_in.i_codec == VLC_CODEC_H264)
hxxx_helper_clean(&p_sys->hh);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment