SchaeferJoerg-5701 avatar image
0 Votes"
SchaeferJoerg-5701 asked ·

Media Foundation Source Reader: ReadSample is not cancelled by Flush

A synchronous Source Reader 'Read Sample' function call is made to an UVC camera media source and no image is returned by the camera. The function call blocks and is not cancelled by 'Flush'.
How can a pending synchronous ReadSample() call be cancelled?

· 6
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @SchaeferJoerg-5701, do you mean calling IMFSourceReader::Flush() can't get IMFSourceReader::ReadSample() return? What's return value of the IMFSourceReader::Flush()?

0 Votes 0 ·

Neither Flush() nor ReadSample() do return at all!

0 Votes 0 ·
RitaHan-MSFT avatar image RitaHan-MSFT SchaeferJoerg-5701 ·

Thanks for confirmation. At what condition this issue occurs? Is it related to camera's status?

0 Votes 0 ·
Show more comments

0 Answers