Video Recording Hangs on IMFSinkWriter->Finalize();

被刻印的时光 ゝ 提交于 2019-12-03 15:37:32

There is a lot of situation where a Media Foundation application can hang :

  • Calling MFShutDown/CoUninitialize when using Media Foundation objects.
  • Using a GUI, and doing bad use of windows message pump in multithreaded application.
  • Bad use of MTA/STA components.
  • Bad use of critical section/wait for event function.
  • Forget to call EndXXX() function when BeginXXX() function are used.
  • Bad use of Callback function.
  • Forget to call AddRef when necessary, and releasing the object used by another thread.
  • A bug in Media Foundation (there are some on Windows Seven).
  • and so on...

When i say a minimal source code, i mean, isolate the source code that do the encoding process, and provide it to Github if it's too large. It's better if we can compile and try the source code, because deadlock are difficult to find.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!