From 10f0476c9fd0bcb94062ca4776d87d9857747dd0 Mon Sep 17 00:00:00 2001 From: "andy.green@datapath.co.uk" Date: Tue, 5 Jun 2018 10:56:00 +0000 Subject: Fix for pointer arithmetic error in DynamicSignal.cs Marshal.ReadIntPtr offset property is in byte. https://bugzilla.gnome.org/show_bug.cgi?id=796497 --- sources/custom/DynamicSignal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/custom/DynamicSignal.cs b/sources/custom/DynamicSignal.cs index b7a9458..86d045e 100644 --- a/sources/custom/DynamicSignal.cs +++ b/sources/custom/DynamicSignal.cs @@ -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; -- cgit v1.2.3