vlcsharpavalonia
vlcsharpavalonia copied to clipboard
Avalonia rendering crashes
Example 2 -> Switch from native to Avalonia
and try to play a file, it simply crashes. Same for AvaloniaCustomDrawingOperation
//edit: Running in VS debug throws this exception: An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module.
Steps to repro:
- Download master branch code
-
dotnet build
-
dotnet run -p .\samples\LibVLCSharp.Avalonia.Sample\
- Example 2
- Switch to Avalonia rendering
- Click play or open a local video file
Issue appears to be something wrong with the callback: https://github.com/donandren/vlcsharpavalonia/blob/4eae8fcc3f2f75ecfc902247b83c1f710a76c270/src/LibVLCSharp.Avalonia/VlcVideoSourceProvider.cs#L213-L229