Issue when using the IMRSourceReader.ReadSample function in async mode #482
raphael-work
started this conversation in
General
Replies: 2 comments
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hello, You can find the repository here => WinFormsAppAsyncMode. King regards |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
First of all, thank you for your work it's really amazing.
I'm implementing a C# WinForm application (.NET 9.0) and referencing your package Vortice.MediaFoundation (3.6.2).
I'm facing an exception when calling the ReadSample from a SourceReader instance with an AsyncCallback setted
You can find below the details of the Exception.
The documentation of the ReadSample method (probably coming from the Win32 API ?) explain this : "In asynchronous mode: All of the [out] parameters must be null. Otherwise, the method returns E_INVALIDARG"
But the [out] directive disallow this prerequisite with integer, enum flags or long.
May I ask you to provide a solution for this issue please ? Or is there another possibility to read a sample asynchronously ?
Beta Was this translation helpful? Give feedback.
All reactions