GNOME Bugzilla – Bug 796497
AccessViolationException when using webrtc.Emit
Last modified: 2018-07-03 18:12:05 UTC
Created attachment 372552 [details] [review] Fix for pointer arithmetic error in DynamicSignal.cs When iterating through the SignalQuery.n_params pointer array, the offset added at each iteration is incorrect for all apart from the first iteration. The current implementation only adds 1 byte to the base pointer for every iteration, where it should be incremented by IntPtr.Size. The bug occurs in https://github.com/GStreamer/gstreamer-sharp/blob/master/sources/custom/DynamicSignal.cs at line 386. Attached is a patch to fix this error.
Attachment 372552 [details] pushed as 10f0476 - Fix for pointer arithmetic error in DynamicSignal.cs