summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandy.green@datapath.co.uk <andy.green@datapath.co.uk>2018-06-05 10:56:00 +0000
committerThibault Saunier <tsaunier@igalia.com>2018-07-03 14:05:42 -0400
commitbe53a339f12ddef5866a7f6a6fced12486a479ec (patch)
tree05876c2da5a61943bb7e837496d6f853199ffd2a
parent53b1e15690d1703091b5d52084e5575201cc646f (diff)
Fix for pointer arithmetic error in DynamicSignal.cs
Marshal.ReadIntPtr offset property is in byte. https://bugzilla.gnome.org/show_bug.cgi?id=796497
-rw-r--r--sources/custom/DynamicSignal.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/custom/DynamicSignal.cs b/sources/custom/DynamicSignal.cs
index b7a94587ed..86d045e748 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;