Fix for pointer arithmetic error in DynamicSignal.cs

Marshal.ReadIntPtr offset property is in byte.

https://bugzilla.gnome.org/show_bug.cgi?id=796497
This commit is contained in:
andy.green@datapath.co.uk 2018-06-05 10:56:00 +00:00 committed by Thibault Saunier
parent a4223fcb42
commit 10f0476c9f

View file

@ -383,7 +383,7 @@ namespace Gst
query.param_types = new Type[q.n_params];
for (int i = 0; i < query.n_params; i++) {
IntPtr t = Marshal.ReadIntPtr (q.param_types, i);
IntPtr t = Marshal.ReadIntPtr (q.param_types, i * IntPtr.Size);
GType g = new GType (t);
query.param_types [i] = (Type)g;