问题
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