ReadSample never returns

只谈情不闲聊 提交于 2021-01-27 20:06:48

问题


I am trying to capture camera stream with Media Foundation. My code works with the same device on Windows 10 but fails on windows 7. For some reason IMFSourceReader.ReadSample blocks and never returns.

The reading is done is synchronous mode.

The first call to read sample returns with pdwStreamFlags set to MF_SOURCE_READERF_STREAMTICK and no errors.

Subsequent calls blocks and never returns. I am using MF_SOURCE_READER_FIRST_VIDEO_STREAM stream index to capture the images from camera.

Any thoughts?

来源:https://stackoverflow.com/questions/48259969/readsample-never-returns

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